We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0df006 commit 6e6cdb6Copy full SHA for 6e6cdb6
cocos/platform/CCPlatformConfig.h
@@ -58,7 +58,7 @@ THE SOFTWARE.
58
#define CC_TARGET_PLATFORM CC_PLATFORM_UNKNOWN
59
60
// Apple: Mac and iOS
61
-#if defined(__APPLE__) && !defined(ANDROID) // exclude android for binding generator.
+#if defined(__APPLE__) && !defined(__ANDROID__) // exclude android for binding generator.
62
#include <TargetConditionals.h>
63
#if TARGET_OS_IPHONE // TARGET_OS_IPHONE includes TARGET_OS_IOS TARGET_OS_TV and TARGET_OS_WATCH. see TargetConditionals.h
64
#undef CC_TARGET_PLATFORM
@@ -70,7 +70,7 @@ THE SOFTWARE.
70
#endif
71
72
// android
73
-#if defined(ANDROID)
+#if defined(__ANDROID__)
74
75
#define CC_TARGET_PLATFORM CC_PLATFORM_ANDROID
76
0 commit comments