12 #define WIN32_LEAN_AND_MEAN
15 WCHAR
*strdupW(const WCHAR
*str
);
17 /* Opens a file with standard I/O. The filename is expected to be UTF-8. */
18 FILE *al_fopen(const char *fname
, const char *mode
);
20 #define HAVE_DYNLOAD 1
24 #define al_fopen fopen
26 #if defined(HAVE_DLFCN_H) && !defined(IN_IDE_PARSER)
27 #define HAVE_DYNLOAD 1
42 struct FileMapping
MapFileToMem(const char *fname
);
43 void UnmapFileMem(const struct FileMapping
*mapping
);
45 void GetProcBinary(al_string
*path
, al_string
*fname
);
48 void *LoadLib(const char *name
);
49 void CloseLib(void *handle
);
50 void *GetSymbol(void *handle
, const char *name
);
54 #define JCALL(obj, func) ((*(obj))->func((obj), EXTRACT_VCALL_ARGS
55 #define JCALL0(obj, func) ((*(obj))->func((obj) EXTRACT_VCALL_ARGS
57 /** Returns a JNIEnv*. */
58 void *Android_GetJNIEnv(void);
65 #endif /* AL_COMPAT_H */