diff options
Diffstat (limited to 'source/blender/blenlib/BLI_sys_types.h')
-rw-r--r-- | source/blender/blenlib/BLI_sys_types.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_sys_types.h b/source/blender/blenlib/BLI_sys_types.h index 7a7da5c097b..96eb68e288e 100644 --- a/source/blender/blenlib/BLI_sys_types.h +++ b/source/blender/blenlib/BLI_sys_types.h @@ -46,8 +46,9 @@ #ifdef __cplusplus extern "C" { #endif - -#if defined(_WIN32) && !defined(FREE_WINDOWS) + +/* MSVC 2010 and 2012 (>=1600) have stdint.h so we should use this for consistency */ +#if defined(_WIN32) && !defined(FREE_WINDOWS) && _MSC_VER <= 1500 /* The __intXX are built-in types of the visual compiler! So we don't * need to include anything else here. */ @@ -99,7 +100,8 @@ typedef uint64_t u_int64_t; #include <inttypes.h> -#elif defined(FREE_WINDOWS) +/* MinGW and MSVC >= 2010 */ +#elif defined(FREE_WINDOWS) || _MSC_VER >= 1600 #include <stdint.h> #else |