diff --git a/src/lj_def.h b/src/lj_def.h index 21cc59a4..c7600d33 100644 --- a/src/lj_def.h +++ b/src/lj_def.h @@ -8,8 +8,8 @@ #include "lua.h" -#if defined(_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 __int8 int8_t; typedef __int16 int16_t; typedef __int32 int32_t;