UndefinePlatforms.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. // DO NOT PUT #pragma once or include guard check here
  2. // This header is designed to be able to be included multiple times
  3. // This header is used to temporary undefine all platform definitions in case there is a naming conflict with
  4. // 3rd party code. Please make sure to always use this paired with the RedefinePlatforms.h header.
  5. //
  6. // ex.
  7. //
  8. // #include "UndefinePlatforms.h"
  9. // #include "Some3rdParty.h"
  10. // #include "RedefinePlatforms.h"
  11. #ifdef DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H
  12. #error "UndefinePlatforms.h has been included more than once or RedefinePlatforms.h is missing."
  13. #endif
  14. // define all other platforms to 0
  15. #if PLATFORM_WIN
  16. #define DETAIL__TEMP_PLATFORM_WIN_WAS_1
  17. #endif
  18. #undef PLATFORM_WIN
  19. #if PLATFORM_OSX
  20. #define DETAIL__TEMP_PLATFORM_OSX_WAS_1
  21. #endif
  22. #undef PLATFORM_OSX
  23. #if PLATFORM_LINUX
  24. #define DETAIL__TEMP_PLATFORM_LINUX_WAS_1
  25. #endif
  26. #undef PLATFORM_LINUX
  27. #if PLATFORM_WINRT
  28. #define DETAIL__TEMP_PLATFORM_WINRT_WAS_1
  29. #endif
  30. #undef PLATFORM_WINRT
  31. #if PLATFORM_FAMILY_WINDOWSGAMES
  32. #define DETAIL__TEMP_PLATFORM_FAMILY_WINDOWSGAMES_WAS_1
  33. #endif
  34. #undef PLATFORM_FAMILY_WINDOWSGAMES
  35. #if PLATFORM_WEBGL
  36. #define DETAIL__TEMP_PLATFORM_WEBGL_WAS_1
  37. #endif
  38. #undef PLATFORM_WEBGL
  39. #if PLATFORM_WASI
  40. #define DETAIL__TEMP_PLATFORM_WASI_WAS_1
  41. #endif
  42. #undef PLATFORM_WASI
  43. #if PLATFORM_ANDROID
  44. #define DETAIL__TEMP_PLATFORM_ANDROID_WAS_1
  45. #endif
  46. #undef PLATFORM_ANDROID
  47. #if PLATFORM_PS4
  48. #define DETAIL__TEMP_PLATFORM_PS4_WAS_1
  49. #endif
  50. #undef PLATFORM_PS4
  51. #if PLATFORM_PS5
  52. #define DETAIL__TEMP_PLATFORM_PS5_WAS_1
  53. #endif
  54. #undef PLATFORM_PS5
  55. #if PLATFORM_IPHONE
  56. #define DETAIL__TEMP_PLATFORM_IPHONE_WAS_1
  57. #endif
  58. #undef PLATFORM_IPHONE
  59. #if PLATFORM_IOS
  60. #define DETAIL__TEMP_PLATFORM_IOS_WAS_1
  61. #endif
  62. #undef PLATFORM_IOS
  63. #if PLATFORM_TVOS
  64. #define DETAIL__TEMP_PLATFORM_TVOS_WAS_1
  65. #endif
  66. #undef PLATFORM_TVOS
  67. #if PLATFORM_VISIONOS
  68. #define DETAIL__TEMP_PLATFORM_VISIONOS_WAS_1
  69. #endif
  70. #undef PLATFORM_VISIONOS
  71. #if PLATFORM_XBOXONE
  72. #define DETAIL__TEMP_PLATFORM_XBOXONE_WAS_1
  73. #endif
  74. #undef PLATFORM_XBOXONE
  75. #if PLATFORM_SWITCH
  76. #define DETAIL__TEMP_PLATFORM_SWITCH_WAS_1
  77. #endif
  78. #undef PLATFORM_SWITCH
  79. #if PLATFORM_LUMIN
  80. #define DETAIL__TEMP_PLATFORM_LUMIN_WAS_1
  81. #endif
  82. #undef PLATFORM_LUMIN
  83. #if PLATFORM_STADIA
  84. #define DETAIL__TEMP_PLATFORM_STADIA_WAS_1
  85. #endif
  86. #undef PLATFORM_STADIA
  87. #if PLATFORM_NETBSD
  88. #define DETAIL__TEMP_PLATFORM_NETBSD_WAS_1
  89. #endif
  90. #undef PLATFORM_NETBSD
  91. #if PLATFORM_EMBEDDED_LINUX
  92. #define DETAIL__TEMP_PLATFORM_EMBEDDED_LINUX_WAS_1
  93. #endif
  94. #undef PLATFORM_EMBEDDED_LINUX
  95. #if PLATFORM_QNX
  96. #define DETAIL__TEMP_PLATFORM_QNX_WAS_1
  97. #endif
  98. #undef PLATFORM_QNX
  99. #define DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H