]> granicus.if.org Git - flex/commitdiff
if we're doing c++, then we can't use long long
authorWill Estes <wlestes@users.sourceforge.net>
Wed, 16 Oct 2002 13:15:37 +0000 (13:15 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Wed, 16 Oct 2002 13:15:37 +0000 (13:15 +0000)
flexint.h

index 98974ebd126b64878a936ac82aa529439b5e14c0..93c5154d0b1b91ac0dd7338ae039c855a498995a 100644 (file)
--- a/flexint.h
+++ b/flexint.h
@@ -14,7 +14,7 @@ typedef signed char int8_t;
 typedef short int int16_t;
 typedef int int32_t;
 
-# if __WORDSIZE == 64 || defined __arch64__
+# if __WORDSIZE == 64 || defined __arch64__ || defined __cplusplus
 typedef long int int64_t;
 # else
 typedef long long int int64_t;
@@ -26,7 +26,7 @@ typedef unsigned char uint8_t;
 typedef unsigned short int uint16_t;
 typedef unsigned int uint32_t;
 
-#if __WORDSIZE == 64 || defined __arch64__
+#if __WORDSIZE == 64 || defined __arch64__ || defined __cplusplus
 typedef unsigned long int uint64_t;
 #else
 typedef unsigned long long int uint64_t;