*BSD: protect against incompatible redefinitions of int64_t/uint64_t.
This commit is contained in:
parent
8db839cc85
commit
33257c6439
1 changed files with 6 additions and 1 deletions
|
@ -17,12 +17,17 @@ typedef union { long long __ll; long double __ld; } max_align_t;
|
|||
typedef signed char int8_t;
|
||||
typedef signed short int int16_t;
|
||||
typedef signed int int32_t;
|
||||
typedef signed __INT64_TYPE__ int64_t;
|
||||
typedef unsigned char uint8_t;
|
||||
typedef unsigned short int uint16_t;
|
||||
typedef unsigned int uint32_t;
|
||||
#if defined(__LP64__) \
|
||||
&& !defined(__FreeBSD__) \
|
||||
&& !(defined(__NetBSD__) && defined(__aarch64__))
|
||||
typedef signed __INT64_TYPE__ int64_t;
|
||||
typedef unsigned __INT64_TYPE__ uint64_t;
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NULL
|
||||
#define NULL ((void*)0)
|
||||
|
|
Loading…
Reference in a new issue