X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/4033103109721ab7a85c743c5c9d1c8f29a734ef..399b932481303c09ebed1cfaaa88538ffa4746ba:/lwip/src/include/arch/cc.h?ds=inline diff --git a/lwip/src/include/arch/cc.h b/lwip/src/include/arch/cc.h index df50e8d..62df7c4 100644 --- a/lwip/src/include/arch/cc.h +++ b/lwip/src/include/arch/cc.h @@ -3,6 +3,7 @@ #include #include +#include #include typedef uint8_t u8_t; @@ -13,7 +14,7 @@ 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_FIELD(x) x #define PACK_STRUCT_STRUCT __attribute__((packed)) #define PACK_STRUCT_BEGIN #define PACK_STRUCT_END @@ -28,7 +29,7 @@ typedef uint32_t mem_ptr_t; #define LWIP_PLATFORM_HTONS(x) htons(x) #define LWIP_PLATFORM_HTONL(x) htonl(x) -#define LWIP_PLATFORM_DIAG(x) dolog(x) +#define LWIP_PLATFORM_DIAG(x) outputf x #define LWIP_PLATFORM_ASSERT(x) dologf("ASSERT FAILED: %s\n", (x)); #endif