favor 'long' over 'long long' for the definition of ARCH_INT64_TYPE
that way ARCH_INT64_PRINTF_FORMAT has a better chance of matching 'int64_t'master
parent
ad273c995a
commit
b88f745dae
|
@ -55,14 +55,14 @@
|
|||
#endif
|
||||
|
||||
#ifndef ARCH_INT64_TYPE
|
||||
#if SIZEOF_LONGLONG == 8
|
||||
#define ARCH_INT64_TYPE long long
|
||||
#define ARCH_UINT64_TYPE unsigned long long
|
||||
#define ARCH_INT64_PRINTF_FORMAT "ll"
|
||||
#elif SIZEOF_LONG == 8
|
||||
#if SIZEOF_LONG == 8
|
||||
#define ARCH_INT64_TYPE long
|
||||
#define ARCH_UINT64_TYPE unsigned long
|
||||
#define ARCH_INT64_PRINTF_FORMAT "l"
|
||||
#elif SIZEOF_LONGLONG == 8
|
||||
#define ARCH_INT64_TYPE long long
|
||||
#define ARCH_UINT64_TYPE unsigned long long
|
||||
#define ARCH_INT64_PRINTF_FORMAT "ll"
|
||||
#else
|
||||
#error "No 64-bit integer type available"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue