diff --git a/cgame/cg_lua.c b/cgame/cg_lua.c index d7f88df..4f4a301 100644 --- a/cgame/cg_lua.c +++ b/cgame/cg_lua.c @@ -4,6 +4,12 @@ #ifdef G_LUA +#if defined(__linux__) || defined(__WIN32__) || defined(__APPLE__) || 1 /* linux, mingw32, OS X - the 1 is temporary*/ +#include /* Note the MSVC project assumes mingw is installed at C:\MinGW\include */ +#else // MSVC +// TODO: I don't care much about MSVC as I user mingw on Windows to compile :P +#endif + lvm_t *lVM[NUM_VMS]; fileHandle_t lualog; @@ -99,9 +105,21 @@ qboolean LoadLuaFile(char *path, int num_vm) qboolean CG_LuaInit() { + #if defined(__linux__) || defined(__WIN32__) || defined(__APPLE__) || 1 /* linux, mingw32, OS X - the 1 is temporary*/ + DIR *pdir = NULL; + struct dirent *pent = NULL; + #else // MSVC + + #endif CG_Printf("------- CG_LuaInit -------\n"); + #if defined(__linux__) || defined(__WIN32__) || defined(__APPLE__) || 1 /* linux, mingw32, OS X - the 1 is temporary*/ + + #else // MSVC + + #endif + // not much to do for now if(cg_logLua.integer) { trap_FS_FOpenFile("./cg_lua.log", &lualog, FS_APPEND); diff --git a/cgame/cgame.vcxproj b/cgame/cgame.vcxproj index 319b2de..c4a6d38 100644 --- a/cgame/cgame.vcxproj +++ b/cgame/cgame.vcxproj @@ -48,6 +48,7 @@ AllRules.ruleset + C:\MinGW\include;$(IncludePath) diff --git a/stefgame.suo b/stefgame.suo index 53f0796..5a07a27 100644 Binary files a/stefgame.suo and b/stefgame.suo differ