🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.9 KiB

  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 __HAIKU__)
  13. # define PHYSFS_PLATFORM_HAIKU 1
  14. # define PHYSFS_PLATFORM_POSIX 1
  15. #elif ((defined __BEOS__) || (defined __beos__))
  16. # error BeOS support was dropped since PhysicsFS 2.1. Sorry. Try Haiku!
  17. #elif (defined _WIN32_WCE) || (defined _WIN64_WCE)
  18. # error PocketPC support was dropped since PhysicsFS 2.1. Sorry. Try WinRT!
  19. #elif (defined(_MSC_VER) && (_MSC_VER >= 1700) && !_USING_V110_SDK71_) /* _MSC_VER==1700 for MSVC 2012 */
  20. # include <winapifamily.h>
  21. # define PHYSFS_PLATFORM_WINDOWS 1
  22. # if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP) && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
  23. # define PHYSFS_NO_CDROM_SUPPORT 1
  24. # define PHYSFS_PLATFORM_WINRT 1
  25. # endif
  26. #elif (((defined _WIN32) || (defined _WIN64)) && (!defined __CYGWIN__))
  27. # define PHYSFS_PLATFORM_WINDOWS 1
  28. #elif defined(__OS2__) || defined(OS2)
  29. # define PHYSFS_PLATFORM_OS2 1
  30. #elif ((defined __MACH__) && (defined __APPLE__))
  31. /* To check if iOS or not, we need to include this file */
  32. # include <TargetConditionals.h>
  33. # if ((TARGET_IPHONE_SIMULATOR) || (TARGET_OS_IPHONE))
  34. # define PHYSFS_NO_CDROM_SUPPORT 1
  35. # endif
  36. # define PHYSFS_PLATFORM_APPLE 1
  37. # define PHYSFS_PLATFORM_POSIX 1
  38. #elif defined(macintosh)
  39. # error Classic Mac OS support was dropped from PhysicsFS 2.0. Move to OS X.
  40. #elif defined(ANDROID)
  41. # define PHYSFS_PLATFORM_LINUX 1
  42. # define PHYSFS_PLATFORM_UNIX 1
  43. # define PHYSFS_PLATFORM_POSIX 1
  44. # define PHYSFS_NO_CDROM_SUPPORT 1
  45. #elif defined(__linux)
  46. # define PHYSFS_PLATFORM_LINUX 1
  47. # define PHYSFS_PLATFORM_UNIX 1
  48. # define PHYSFS_PLATFORM_POSIX 1
  49. #elif defined(__sun) || defined(sun)
  50. # define PHYSFS_PLATFORM_SOLARIS 1
  51. # define PHYSFS_PLATFORM_UNIX 1
  52. # define PHYSFS_PLATFORM_POSIX 1
  53. #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
  54. # define PHYSFS_PLATFORM_FREEBSD 1
  55. # define PHYSFS_PLATFORM_BSD 1
  56. # define PHYSFS_PLATFORM_UNIX 1
  57. # define PHYSFS_PLATFORM_POSIX 1
  58. #elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
  59. # define PHYSFS_PLATFORM_BSD 1
  60. # define PHYSFS_PLATFORM_UNIX 1
  61. # define PHYSFS_PLATFORM_POSIX 1
  62. #elif defined(__EMSCRIPTEN__)
  63. # define PHYSFS_NO_CDROM_SUPPORT 1
  64. # define PHYSFS_PLATFORM_UNIX 1
  65. # define PHYSFS_PLATFORM_POSIX 1
  66. #elif defined(__QNX__)
  67. # define PHYSFS_PLATFORM_QNX 1
  68. # define PHYSFS_PLATFORM_POSIX 1
  69. #elif defined(unix) || defined(__unix__)
  70. # define PHYSFS_PLATFORM_UNIX 1
  71. # define PHYSFS_PLATFORM_POSIX 1
  72. #else
  73. # error Unknown platform.
  74. #endif
  75. #endif /* include-once blocker. */