Prechádzať zdrojové kódy

Workaround for VS2008 64-bit mode.

Lasse Öörni 12 rokov pred
rodič
commit
f6213623ed
1 zmenil súbory, kde vykonal 8 pridanie a 0 odobranie
  1. 8 0
      Source/ThirdParty/LuaJIT/src/lj_err.c

+ 8 - 0
Source/ThirdParty/LuaJIT/src/lj_err.c

@@ -3,6 +3,8 @@
 ** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h
 */
 
+// Modified by Lasse Oorni for Urho3D
+
 #define lj_err_c
 #define LUA_CORE
 
@@ -370,6 +372,12 @@ LJ_FUNCA int lj_err_unwind_arm(int state, void *ucb, _Unwind_Context *ctx)
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
 
+// Urho3D: added Visual Studio 2008 64-bit workaround
+#if defined(_MSC_VER) && _MSC_VER <= 1500
+typedef void* PEXCEPTION_ROUTINE;
+typedef void* PUNWIND_HISTORY_TABLE;
+#endif
+
 /* Taken from: http://www.nynaeve.net/?p=99 */
 typedef struct UndocumentedDispatcherContext {
   ULONG64 ControlPc;