diff --git a/lib/bitop/bit.cpp b/lib/bitop/bit.cpp index 39b53838f..9957ab5c2 100644 --- a/lib/bitop/bit.cpp +++ b/lib/bitop/bit.cpp @@ -37,8 +37,8 @@ extern "C" { #include "lauxlib.h" } -#ifdef _MSC_VER -/* MSVC is stuck in the last century and doesn't have C99's stdint.h. */ +#if defined(_MSC_VER) && (_MSC_VER < 1700) +/* Old MSVC is stuck in the last century and doesn't have C99's stdint.h. */ typedef __int32 int32_t; typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t;