Haiku: Fix posix INT64_C macros on x86_64
* Was causing LLVM to fail to build on x86_64 * Make XINT64 adjust based on architecture like config/types.h to ensure these macros match uint64 and int64 at all times. * Resolves #10566
This commit is contained in:
parent
374cf8c85d
commit
122d1cddc9
@ -136,16 +136,22 @@ typedef uint64_t uintmax_t;
|
||||
#define INT8_C(value) value
|
||||
#define INT16_C(value) value
|
||||
#define INT32_C(value) value
|
||||
#define INT64_C(value) value ## LL
|
||||
|
||||
#define UINT8_C(value) value ## U
|
||||
#define UINT16_C(value) value ## U
|
||||
#define UINT32_C(value) value ## U
|
||||
#define UINT64_C(value) value ## ULL
|
||||
|
||||
/* Macros for greatest-width integer constant expressions */
|
||||
#if defined(__SIZEOF_LONG__) && __SIZEOF_LONG__ > 4
|
||||
#define INT64_C(value) value ## L
|
||||
#define UINT64_C(value) value ## UL
|
||||
#define INTMAX_C(value) value ## L
|
||||
#define UINTMAX_C(value) value ## UL
|
||||
#else
|
||||
#define INT64_C(value) value ## LL
|
||||
#define UINT64_C(value) value ## ULL
|
||||
#define INTMAX_C(value) value ## LL
|
||||
#define UINTMAX_C(value) value ## ULL
|
||||
#define UINTMAX_C(value) value ## ULL
|
||||
#endif
|
||||
|
||||
#endif /* !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user