Constify and use the correct size for an array
[openal-soft.git] / Alc / compat.h
blob0443692a36129cbc7de4c63a38d18ae04e1cf10a
1 #ifndef AL_COMPAT_H
2 #define AL_COMPAT_H
4 #include "alstring.h"
6 #ifdef _WIN32
8 #define WIN32_LEAN_AND_MEAN
9 #include <windows.h>
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
18 #else
20 #define al_fopen fopen
22 #if defined(HAVE_DLFCN_H) && !defined(IN_IDE_PARSER)
23 #define HAVE_DYNLOAD 1
24 #endif
26 #endif
28 al_string GetProcPath(void);
30 #ifdef HAVE_DYNLOAD
31 void *LoadLib(const char *name);
32 void CloseLib(void *handle);
33 void *GetSymbol(void *handle, const char *name);
34 #endif
36 #endif /* AL_COMPAT_H */