physfs_platforms.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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_POSIX
  24. #elif defined(macintosh)
  25. # error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
  26. #elif defined(unix)
  27. # define PHYSFS_PLATFORM_UNIX
  28. # define PHYSFS_PLATFORM_POSIX
  29. #else
  30. # error Unknown platform.
  31. #endif
  32. #endif /* include-once blocker. */