physfs_platforms.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. /* To check if iphone or not, we need to inlcude this file */
  23. # include <TargetConditionals.h>
  24. # if (defined(TARGET_IPHONE_SIMULATOR) || (defined TARGET_OS_IPHONE))
  25. # define PHYSFS_PLATFORM_UNIX
  26. # define PHYSFS_PLATFORM_POSIX
  27. # define PHYSFS_NO_CDROM_SUPPORT
  28. # else
  29. # define PHYSFS_PLATFORM_MACOSX
  30. # define PHYSFS_PLATFORM_POSIX
  31. # endif
  32. #elif defined(macintosh)
  33. # error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
  34. #elif defined(unix)
  35. # define PHYSFS_PLATFORM_UNIX
  36. # define PHYSFS_PLATFORM_POSIX
  37. #else
  38. # error Unknown platform.
  39. #endif
  40. #endif /* include-once blocker. */