From 3ece3a3e3a448ecc54e317fd5743d1f4c19db28b Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 8 Dec 2019 18:43:12 +0100 Subject: [PATCH] More recent MSVC is partially C99 compliant. --- src/lj_def.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;