windows: allow SF2 to be loaded from unicode paths

fix #128
This commit is contained in:
derselbst 2017-06-25 11:51:32 +02:00
parent 2526982f9f
commit d3f4b14e48

View file

@ -223,7 +223,11 @@ typedef FILE* fluid_file;
#define FLUID_NEW(_t) (_t*)malloc(sizeof(_t))
#define FLUID_ARRAY(_t,_n) (_t*)malloc((_n)*sizeof(_t))
#define FLUID_FREE(_p) free(_p)
#define FLUID_FOPEN(_f,_m) fopen(_f,_m)
#if defined(WIN32)
#define FLUID_FOPEN(_f,_m) _wfopen(_f,_m)
#else
#define FLUID_FOPEN(_f,_m) fopen(_f,_m)
#endif
#define FLUID_FCLOSE(_f) fclose(_f)
#define FLUID_FREAD(_p,_s,_n,_f) fread(_p,_s,_n,_f)
#define FLUID_FSEEK(_f,_n,_set) fseek(_f,_n,_set)