compat.h 582 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef AL_COMPAT_H
  2. #define AL_COMPAT_H
  3. #ifdef _WIN32
  4. #define WIN32_LEAN_AND_MEAN
  5. #include <windows.h>
  6. WCHAR *strdupW(const WCHAR *str);
  7. /* Opens a file with standard I/O. The filename is expected to be UTF-8. */
  8. FILE *al_fopen(const char *fname, const char *mode);
  9. #define HAVE_DYNLOAD 1
  10. #else
  11. #define al_fopen fopen
  12. #if defined(HAVE_DLFCN_H) && !defined(IN_IDE_PARSER)
  13. #define HAVE_DYNLOAD 1
  14. #endif
  15. #endif
  16. #ifdef HAVE_DYNLOAD
  17. void *LoadLib(const char *name);
  18. void CloseLib(void *handle);
  19. void *GetSymbol(void *handle, const char *name);
  20. #endif
  21. #endif /* AL_COMPAT_H */