Browse Source

Update Lua BitOp's stdint.h check for MSVC

based on https://github.com/LuaJIT/LuaJIT/commit/3ece3a3e3a448ecc54e317fd5743d1f4c19db28b
goodusername123 1 month ago
parent
commit
fa072c1d2c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/bitop/bit.cpp

+ 2 - 2
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;