mirror of
https://github.com/mirror/tinycc.git
synced 2026-09-01 12:07:53 +08:00
*BSD: protect against incompatible redefinitions of int64_t/uint64_t.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user