mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
"long int" isn't necessarily 64 bits on a 64-bit architecture, but "long long int" usually is.
This commit is contained in:
parent
e508c07765
commit
d715a331e3
@ -52,20 +52,12 @@ typedef uint64_t PN_uint64;
|
|||||||
typedef signed char PN_int8;
|
typedef signed char PN_int8;
|
||||||
typedef short int PN_int16;
|
typedef short int PN_int16;
|
||||||
typedef int PN_int32;
|
typedef int PN_int32;
|
||||||
#if NATIVE_WORDSIZE == 64
|
|
||||||
typedef long int PN_int64;
|
|
||||||
#else
|
|
||||||
typedef long long int PN_int64;
|
typedef long long int PN_int64;
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef unsigned char PN_uint8;
|
typedef unsigned char PN_uint8;
|
||||||
typedef unsigned short int PN_uint16;
|
typedef unsigned short int PN_uint16;
|
||||||
typedef unsigned int PN_uint32;
|
typedef unsigned int PN_uint32;
|
||||||
#if NATIVE_WORDSIZE == 64
|
|
||||||
typedef unsigned long int PN_uint64;
|
|
||||||
#else
|
|
||||||
typedef unsigned long long int PN_uint64;
|
typedef unsigned long long int PN_uint64;
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -24,20 +24,12 @@
|
|||||||
typedef signed char int8_t;
|
typedef signed char int8_t;
|
||||||
typedef short int int16_t;
|
typedef short int int16_t;
|
||||||
typedef int int32_t;
|
typedef int int32_t;
|
||||||
#if __WORDSIZE == 64
|
|
||||||
typedef long int int64_t;
|
|
||||||
#else
|
|
||||||
typedef long long int int64_t;
|
typedef long long int int64_t;
|
||||||
#endif
|
|
||||||
|
|
||||||
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;
|
||||||
#if __WORDSIZE == 64
|
|
||||||
typedef unsigned long int uint64_t;
|
|
||||||
#else
|
|
||||||
typedef unsigned long long int uint64_t;
|
typedef unsigned long long int uint64_t;
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user