8 #define WIN32_LEAN_AND_MEAN
11 WCHAR
*strdupW(const WCHAR
*str
);
13 /* Opens a file with standard I/O. The filename is expected to be UTF-8. */
14 FILE *al_fopen(const char *fname
, const char *mode
);
16 #define HAVE_DYNLOAD 1
20 #define al_fopen fopen
22 #if defined(HAVE_DLFCN_H) && !defined(IN_IDE_PARSER)
23 #define HAVE_DYNLOAD 1
38 struct FileMapping
MapFileToMem(const char *fname
);
39 void UnmapFileMem(const struct FileMapping
*mapping
);
41 al_string
GetProcPath(void);
44 void *LoadLib(const char *name
);
45 void CloseLib(void *handle
);
46 void *GetSymbol(void *handle
, const char *name
);
50 #define JCALL(obj, func) ((*(obj))->func((obj), EXTRACT_VCALL_ARGS
51 #define JCALL0(obj, func) ((*(obj))->func((obj) EXTRACT_VCALL_ARGS
53 /** Returns a JNIEnv*. */
54 void *Android_GetJNIEnv(void);
57 #endif /* AL_COMPAT_H */