|
From: | Dirk Ziegelmeier |
Subject: | [lwip-devel] [patch #9034] Use stdint.h and inttypes.h in lwip/arch.h? |
Date: | Sat, 25 Jun 2016 18:19:05 +0000 (UTC) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:47.0) Gecko/20100101 Firefox/47.0 |
URL: <http://savannah.nongnu.org/patch/?9034> Summary: Use stdint.h and inttypes.h in lwip/arch.h? Project: lwIP - A Lightweight TCP/IP stack Submitted by: dziegel Submitted on: Sat 25 Jun 2016 06:19:02 PM GMT Category: Platform ports Priority: 5 - Normal Status: Need Info Privacy: Public Assigned to: dziegel Originator Email: Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Details: How about adding the following to lwip/arch.h? Would it be OK to use c99 headers? /* Define generic types used in lwIP */ #ifndef LWIP_NO_STDINT_H #include <stdint.h> typedef uint8_t u8_t; typedef int8_t s8_t; typedef uint16_t u16_t; typedef int16_t s16_t; typedef uint32_t u32_t; typedef int32_t s32_t; #endif /* Define (sn)printf formatters for these lwIP types */ #ifndef LWIP_NO_INTTYPES_H #include <inttypes.h> #define X8_F "02"PRIx8 #define U16_F PRIu16 #define S16_F PRId16 #define X16_F PRIx16 #define U32_F PRIu32 #define S32_F PRId32 #define X32_F PRIx32 #define SZT_F PRIuMAX #endif _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?9034> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |