From: Will Estes Date: Wed, 16 Oct 2002 13:15:37 +0000 (+0000) Subject: if we're doing c++, then we can't use long long X-Git-Tag: flex-2-5-23~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=445f3de9e4220c10b2b1377786a528aa75316e8d;p=flex if we're doing c++, then we can't use long long --- diff --git a/flexint.h b/flexint.h index 98974eb..93c5154 100644 --- 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;