Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

RedefinePlatforms.h 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 redefine iOS/tvOS platforms after they were temporary undefined by UndefinePlatforms.h
  4. // Please make sure to always use this paired with the UndefinePlatforms.h header.
  5. // Note: PLATFORM_IOS and PLATFORM_TVOS are redefined in
  6. // /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/mach-o/loader.h
  7. //
  8. // ex.
  9. //
  10. // #include "UndefinePlatforms.h"
  11. // #include "Some3rdParty.h"
  12. // #include "RedefinePlatforms.h"
  13. #ifndef DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H
  14. #error "RedefinePlatforms.h can only be used after UndefinePlatforms.h got included before."
  15. #endif
  16. #undef DETAIL__PLATFORMS_HAD_BEEN_UNDEFINED_BY_UNDEFINEPLATFORMS_H
  17. #undef PLATFORM_IOS
  18. #if defined(DETAIL__TEMP_PLATFORM_IOS_WAS_1)
  19. #undef DETAIL__TEMP_PLATFORM_IOS_WAS_1
  20. #define PLATFORM_IOS 1
  21. #else
  22. #define PLATFORM_IOS 0
  23. #endif
  24. #undef PLATFORM_TVOS
  25. #if defined(DETAIL__TEMP_PLATFORM_TVOS_WAS_1)
  26. #undef DETAIL__TEMP_PLATFORM_TVOS_WAS_1
  27. #define PLATFORM_TVOS 1
  28. #else
  29. #define PLATFORM_TVOS 0
  30. #endif
  31. #undef PLATFORM_VISIONOS
  32. #if defined(DETAIL__TEMP_PLATFORM_VISIONOS_WAS_1)
  33. #undef DETAIL__TEMP_PLATFORM_VISIONOS_WAS_1
  34. #define PLATFORM_VISIONOS 1
  35. #else
  36. #define PLATFORM_VISIONOS 0
  37. #endif