"long int" isn't necessarily 64 bits on a 64-bit architecture, but "long long int" usually is.

This commit is contained in:
David Rose 2011-04-03 21:07:32 +00:00
parent e508c07765
commit d715a331e3
2 changed files with 0 additions and 16 deletions

View File

@ -52,20 +52,12 @@ typedef uint64_t PN_uint64;
typedef signed char PN_int8;
typedef short int PN_int16;
typedef int PN_int32;
#if NATIVE_WORDSIZE == 64
typedef long int PN_int64;
#else
typedef long long int PN_int64;
#endif
typedef unsigned char PN_uint8;
typedef unsigned short int PN_uint16;
typedef unsigned int PN_uint32;
#if NATIVE_WORDSIZE == 64
typedef unsigned long int PN_uint64;
#else
typedef unsigned long long int PN_uint64;
#endif
#endif

View File

@ -24,20 +24,12 @@
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
#if __WORDSIZE == 64
typedef long int int64_t;
#else
typedef long long int int64_t;
#endif
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
#if __WORDSIZE == 64
typedef unsigned long int uint64_t;
#else
typedef unsigned long long int uint64_t;
#endif
#endif