mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Get jar_mod and jar_xm compiling with MSVC.
This commit is contained in:
+6
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user