mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-06 02:27:15 +00:00
arch: Optionally support 64-bit integers
This commit is contained in:
parent
596bddac47
commit
9323ad3211
@ -116,12 +116,20 @@
|
||||
/* Define generic types used in lwIP */
|
||||
#if !LWIP_NO_STDINT_H
|
||||
#include <stdint.h>
|
||||
/* 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user