physfs_platforms.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _INCL_PHYSFS_PLATFORMS
  2. #define _INCL_PHYSFS_PLATFORMS
  3. #ifndef __PHYSICSFS_INTERNAL__
  4. #error Do not include this header from your applications.
  5. #endif
  6. /*
  7. * These only define the platforms to determine which files in the platforms
  8. * directory should be compiled. For example, technically BeOS can be called
  9. * a "unix" system, but since it doesn't use unix.c, we don't define
  10. * PHYSFS_PLATFORM_UNIX on that system.
  11. */
  12. #if ((defined __BEOS__) || (defined __beos__))
  13. # define PHYSFS_PLATFORM_BEOS
  14. # define PHYSFS_PLATFORM_POSIX
  15. #elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
  16. # define PHYSFS_PLATFORM_POCKETPC
  17. #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
  18. # define PHYSFS_PLATFORM_WINDOWS
  19. #elif (defined OS2)
  20. # define PHYSFS_PLATFORM_OS2
  21. #elif ((defined __MACH__) && (defined __APPLE__))
  22. # define PHYSFS_PLATFORM_MACOSX
  23. # define PHYSFS_PLATFORM_UNIX
  24. # define PHYSFS_PLATFORM_POSIX
  25. #elif defined(macintosh)
  26. # define PHYSFS_PLATFORM_MACCLASSIC
  27. #elif defined(unix)
  28. # define PHYSFS_PLATFORM_UNIX
  29. # define PHYSFS_PLATFORM_POSIX
  30. #else
  31. # error Unknown platform.
  32. #endif
  33. #endif /* include-once blocker. */