Rework HRTF decision logic
[openal-soft.git] / Alc / compat.h
blobf54ef9ce02b82289e94f09411cc4d89e7930cec6
1 #ifndef AL_COMPAT_H
2 #define AL_COMPAT_H
4 #ifdef _WIN32
6 #define WIN32_LEAN_AND_MEAN
7 #include <windows.h>
9 WCHAR *strdupW(const WCHAR *str);
11 /* Opens a file with standard I/O. The filename is expected to be UTF-8. */
12 FILE *al_fopen(const char *fname, const char *mode);
14 #define HAVE_DYNLOAD 1
16 #else
18 #define al_fopen fopen
20 #if defined(HAVE_DLFCN_H) && !defined(IN_IDE_PARSER)
21 #define HAVE_DYNLOAD 1
22 #endif
24 #endif
26 #ifdef HAVE_DYNLOAD
27 void *LoadLib(const char *name);
28 void CloseLib(void *handle);
29 void *GetSymbol(void *handle, const char *name);
30 #endif
32 #endif /* AL_COMPAT_H */