Nedd __STDC_LIMIT_MACROS for *_MAX constant to be defined

This commit is contained in:
ptitSeb 2016-04-19 07:30:43 +02:00
parent c5148824b2
commit f5d397ebc6

1
Sources/Engine/Base/Types.h Normal file → Executable file
View File

@ -70,6 +70,7 @@ typedef unsigned int UINT;
#else #else
// AFAIK there were versions of MSVC where UINTPTR_MAX was incorrect, // AFAIK there were versions of MSVC where UINTPTR_MAX was incorrect,
// so I use different code for Windows above // so I use different code for Windows above
#define __STDC_LIMIT_MACROS 1
#include <stdint.h> // UINTPTR_MAX #include <stdint.h> // UINTPTR_MAX
#ifdef UINTPTR_MAX #ifdef UINTPTR_MAX
#if UINTPTR_MAX == 0xffffffffuL #if UINTPTR_MAX == 0xffffffffuL