aboutsummaryrefslogtreecommitdiffstats
path: root/core/lwip/src/include/arch/cc.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-18 13:38:50 -0700
committerEric W. Biederman <ebiederm@xmission.com>2011-04-12 14:40:53 -0700
commit7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6 (patch)
treecbd8188653c49b6c8e4388376fe27b71010b73b0 /core/lwip/src/include/arch/cc.h
parent5272cd63783fa992c5cb46a901adf4b28f1ad3e6 (diff)
downloadsyslinux-7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6.tar.gz
syslinux-7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6.tar.xz
syslinux-7af49ffe77f0ed6ea134a15ed2fddcf9dd0823e6.zip
lwip: fix timestamps, statistics functions
Add bits needed to support timestamps and stats functions. Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'core/lwip/src/include/arch/cc.h')
-rw-r--r--core/lwip/src/include/arch/cc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/lwip/src/include/arch/cc.h b/core/lwip/src/include/arch/cc.h
index 065afa84..add36589 100644
--- a/core/lwip/src/include/arch/cc.h
+++ b/core/lwip/src/include/arch/cc.h
@@ -6,6 +6,7 @@
#include <errno.h>
#include <stdlib.h>
#include <kaboom.h>
+#include <stdio.h>
#define BYTE_ORDER LITTLE_ENDIAN
@@ -20,8 +21,13 @@ typedef uintptr_t mem_ptr_t;
#define PACK_STRUCT_STRUCT __packed
+#if 1
+#define LWIP_PLATFORM_DIAG(x) do { printf x; } while(0)
+#define LWIP_PLATFORM_ASSERT(x) do { printf("%s", (x)); kaboom(); } while(0)
+#else
#define LWIP_PLATFORM_DIAG(x) ((void)0) /* For now... */
#define LWIP_PLATFORM_ASSERT(x) kaboom()
+#endif
#define U16_F PRIu16
#define S16_F PRId16