Get jar_mod and jar_xm compiling with MSVC.

This commit is contained in:
David Reid
2017-11-18 15:19:36 +10:00
parent 7649aa5348
commit 5de1079427
2 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -1524,7 +1524,12 @@ mulong jar_mod_load_file(jar_mod_context_t * modctx, const char* filename)
modctx->modfile = 0;
}
FILE *f = fopen(filename, "rb");
FILE *f = NULL;
#if defined(_MSC_VER) && _MSC_VER >= 1500
fopen_s(&f, filename, "rb");
#else
f = fopen(filename, "rb");
#endif
if(f)
{
fseek(f,0,SEEK_END);