fix definition of int64_t in libc-builtin-sysroot (#898)

This commit is contained in:
Xu Jun 2021-12-15 17:32:29 +08:00 committed by GitHub
parent e70867c64f
commit 45ace31d2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,16 +10,17 @@
extern "C" { extern "C" {
#endif #endif
/* clang-format off */
typedef char int8_t; typedef char int8_t;
typedef short int int16_t; typedef short int int16_t;
typedef int int32_t; typedef int int32_t;
typedef long int int64_t; typedef long long int int64_t;
/* Unsigned. */ /* Unsigned. */
typedef unsigned char uint8_t; typedef unsigned char uint8_t;
typedef unsigned short int uint16_t; typedef unsigned short int uint16_t;
typedef unsigned int uint32_t; typedef unsigned int uint32_t;
typedef unsigned long int uint64_t; typedef unsigned long long int uint64_t;
typedef __INTPTR_TYPE__ intptr_t; typedef __INTPTR_TYPE__ intptr_t;
typedef __UINTPTR_TYPE__ uintptr_t; typedef __UINTPTR_TYPE__ uintptr_t;
@ -40,6 +41,7 @@ typedef __UINTPTR_TYPE__ uintptr_t;
# define UINT16_MAX (65535) # define UINT16_MAX (65535)
# define UINT32_MAX (4294967295U) # define UINT32_MAX (4294967295U)
# define UINT64_MAX (__UINT64_C(18446744073709551615)) # define UINT64_MAX (__UINT64_C(18446744073709551615))
/* clang-format on */
#ifdef __cplusplus #ifdef __cplusplus
} }