]> rtime.felk.cvut.cz Git - pes-rpp/rpp-lwip.git/commitdiff
OMK build update: Actual lwIP uses stdint.h and inttypes.h by default.
authorPavel Pisa <ppisa@pikron.com>
Thu, 14 Jul 2016 10:09:50 +0000 (12:09 +0200)
committerPavel Pisa <pisa@cmp.felk.cvut.cz>
Wed, 27 Jul 2016 18:55:45 +0000 (20:55 +0200)
Signed-off-by: Pavel Pisa <ppisa@pikron.com>
ports/driver/lpc_emac/lwip-lpc.h
ports/os/sysless/arch/cc.h

index e9458a0171edb7432dcb6e52cbf6c7ee4969bf82..554e729b47dd1edd0b3b85d349cd66c9f3d3fa2b 100644 (file)
@@ -5,7 +5,7 @@
 #include "lwip/err.h"
 #include "lwip/tcp.h"
 #include <netif/etharp.h>
-#include <lwip/tcp_impl.h>
+/* #include <lwip/tcp_impl.h> */
 
 
 void lpcnetif_input(struct netif *netif);
index 8c9c95a164aa3a2c7fbe925c5d15914207fc0cf0..ea43a8fce5527c32eada2be5dd049fb667d03e25 100644 (file)
@@ -2,8 +2,11 @@
 #include <stdint.h>
 #include <stdio.h>
 
+#if 1
+#define LWIP_NO_STDINT_H 0
+#else
 #include <stdint.h>
+
 /* Types based on stdint.h */
 typedef uint8_t            u8_t; 
 typedef int8_t             s8_t; 
@@ -12,7 +15,11 @@ typedef int16_t            s16_t;
 typedef uint32_t           u32_t; 
 typedef int32_t            s32_t; 
 typedef uintptr_t          mem_ptr_t; 
+#endif
+
+#if 1
+#define LWIP_NO_INTTYPES_H 0
+#else
 /* Define (sn)printf formatters for these lwIP types */
 #define U16_F "hu"
 #define S16_F "hd"
@@ -21,7 +28,8 @@ typedef uintptr_t          mem_ptr_t;
 #define S32_F "ld"
 #define X32_F "lx"
 #define SZT_F "uz"
+#endif
+
 /* ARM/LPC17xx is little endian only */
 #define BYTE_ORDER LITTLE_ENDIAN