X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/7d1ce001d409431cc1e5648cc379b3c15a2ae862..1deef7f33c284af59d562e7b50812f9649e94d0b:/lwip/src/include/arch/cc.h 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