mirror of https://github.com/axmolengine/axmol.git
Update android platform macro detection
This commit is contained in:
parent
8e1087a987
commit
01b5e6fa2b
|
@ -58,7 +58,7 @@ THE SOFTWARE.
|
|||
#define CC_TARGET_PLATFORM CC_PLATFORM_UNKNOWN
|
||||
|
||||
// Apple: Mac and iOS
|
||||
#if defined(__APPLE__) && !defined(ANDROID) // exclude android for binding generator.
|
||||
#if defined(__APPLE__) && !defined(__ANDROID__) // exclude android for binding generator.
|
||||
#include <TargetConditionals.h>
|
||||
#if TARGET_OS_IPHONE // TARGET_OS_IPHONE includes TARGET_OS_IOS TARGET_OS_TV and TARGET_OS_WATCH. see TargetConditionals.h
|
||||
#undef CC_TARGET_PLATFORM
|
||||
|
@ -70,7 +70,7 @@ THE SOFTWARE.
|
|||
#endif
|
||||
|
||||
// android
|
||||
#if defined(ANDROID)
|
||||
#if defined(__ANDROID__)
|
||||
#undef CC_TARGET_PLATFORM
|
||||
#define CC_TARGET_PLATFORM CC_PLATFORM_ANDROID
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue