From fa072c1d2cfba5f57ee528dde143947e5046f2d5 Mon Sep 17 00:00:00 2001 From: goodusername123 <61405538+goodusername123@users.noreply.github.com> Date: Tue, 19 Mar 2024 13:54:57 -0500 Subject: [PATCH] Update Lua BitOp's stdint.h check for MSVC based on https://github.com/LuaJIT/LuaJIT/commit/3ece3a3e3a448ecc54e317fd5743d1f4c19db28b --- lib/bitop/bit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;