From 9323ad32115d3b621c3302735645529d6197db9e Mon Sep 17 00:00:00 2001 From: Daniel Elstner Date: Sat, 25 Mar 2017 16:18:11 +0100 Subject: [PATCH] arch: Optionally support 64-bit integers --- src/include/lwip/arch.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/include/lwip/arch.h b/src/include/lwip/arch.h index 18228c56..50337022 100644 --- a/src/include/lwip/arch.h +++ b/src/include/lwip/arch.h @@ -116,12 +116,20 @@ /* Define generic types used in lwIP */ #if !LWIP_NO_STDINT_H #include +/* stdint.h is C99 which should also provide support for 64-bit integers */ +#if !defined(LWIP_HAVE_INT64) && defined(UINT64_MAX) +#define LWIP_HAVE_INT64 1 +#endif 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; +#if LWIP_HAVE_INT64 +typedef uint64_t u64_t; +typedef int64_t s64_t; +#endif typedef uintptr_t mem_ptr_t; #endif