]> Joshua Wise's Git repositories - netwatch.git/blobdiff - lwip/src/include/arch/cc.h
initial checkin of lwip, enough to build
[netwatch.git] / lwip / src / include / arch / cc.h
diff --git a/lwip/src/include/arch/cc.h b/lwip/src/include/arch/cc.h
new file mode 100644 (file)
index 0000000..52adcb5
--- /dev/null
@@ -0,0 +1,34 @@
+#ifndef _ARCH_CC_H
+#define _ARCH_CC_H
+
+#include <stdint.h>
+#include <minilib.h>
+
+typedef uint8_t u8_t;
+typedef uint16_t u16_t;
+typedef uint32_t u32_t;
+typedef int8_t s8_t;
+typedef int16_t s16_t;
+typedef int32_t s32_t;
+typedef uint32_t mem_ptr_t;
+
+#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
+#define PACK_STRUCT_STRUCT __attribute__((packed))
+#define PACK_STRUCT_BEGIN
+#define PACK_STRUCT_END
+
+#define BYTE_ORDER LITTLE_ENDIAN
+
+#ifndef NULL
+#define NULL 0
+#endif
+
+#define LWIP_PLATFORM_BYTESWAP 1
+#define LWIP_PLATFORM_HTONS(x) htons(x)
+#define LWIP_PLATFORM_HTONL(x) htonl(x)
+
+/* XXX fix this */
+#define LWIP_PLATFORM_DIAG(x)
+#define LWIP_PLATFORM_ASSERT(x)
+
+#endif
This page took 0.022667 seconds and 4 git commands to generate.