diff --git a/include/boost/stdint.h b/include/boost/stdint.h index afc27a4..aa7d2f7 100644 --- a/include/boost/stdint.h +++ b/include/boost/stdint.h @@ -200,8 +200,9 @@ Added 23rd September (John Maddock). // 64-bit types + intmax_t and uintmax_t -----------------------------------// -# if defined(ULLONG_MAX) -# if ULLONG_MAX == 18446744073709551615 // 2**64 - 1 +# if (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX)) && !(defined(_WIN32) && defined(__GNUC__)) +# if(defined(ULLONG_MAX) && ULLONG_MAX == 18446744073709551615) || \ + (defined(ULONG_LONG_MAX) && ULONG_LONG_MAX == 18446744073709551615) #define INT64_C(value) value##LL #define UINT64_C(value) value##uLL # else