UndefinePlatforms.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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_ANDROID
  40. #define DETAIL__TEMP_PLATFORM_ANDROID_WAS_1
  41. #endif
  42. #undef PLATFORM_ANDROID
  43. #if PLATFORM_PS4
  44. #define DETAIL__TEMP_PLATFORM_PS4_WAS_1
  45. #endif
  46. #undef PLATFORM_PS4
  47. #if PLATFORM_IPHONE
  48. #define DETAIL__TEMP_PLATFORM_IPHONE_WAS_1
  49. #endif
  50. #undef PLATFORM_IPHONE
  51. #if PLATFORM_IOS
  52. #define DETAIL__TEMP_PLATFORM_IOS_WAS_1
  53. #endif
  54. #undef PLATFORM_IOS
  55. #if PLATFORM_TVOS
  56. #define DETAIL__TEMP_PLATFORM_TVOS_WAS_1
  57. #endif
  58. #undef PLATFORM_TVOS
  59. #if PLATFORM_XBOXONE
  60. #define DETAIL__TEMP_PLATFORM_XBOXONE_WAS_1
  61. #endif
  62. #undef PLATFORM_XBOXONE
  63. #if PLATFORM_SWITCH
  64. #define DETAIL__TEMP_PLATFORM_SWITCH_WAS_1
  65. #endif
  66. #undef PLATFORM_SWITCH
  67. #if PLATFORM_LUMIN
  68. #define DETAIL__TEMP_PLATFORM_LUMIN_WAS_1
  69. #endif
  70. #undef PLATFORM_LUMIN
  71. #if PLATFORM_GGP
  72. #define DETAIL__TEMP_PLATFORM_GGP_WAS_1
  73. #endif
  74. #undef PLATFORM_GGP
  75. #if PLATFORM_NETBSD
  76. #define DETAIL__TEMP_PLATFORM_NETBSD_WAS_1
  77. #endif
  78. #undef PLATFORM_NETBSD
  79. #define DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H