Try fixes binding generator error.

This commit is contained in:
Xpol Wan 2016-03-18 10:21:38 +08:00
parent 0211c372b4
commit 4bbfb56983
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ THE SOFTWARE.
#define CC_TARGET_PLATFORM CC_PLATFORM_UNKNOWN #define CC_TARGET_PLATFORM CC_PLATFORM_UNKNOWN
// Apple: Mac and iOS // Apple: Mac and iOS
#if defined(__APPLE__) #if defined(__APPLE__) && !defined(ANDROID) // execlude android for binding generator.
#include <TargetConditionals.h> #include <TargetConditionals.h>
#if TARGET_OS_IPHONE // TARGET_OS_IPHONE inlcudes TARGET_OS_IOS TARGET_OS_TV and TARGET_OS_WATCH. see TargetConditionals.h #if TARGET_OS_IPHONE // TARGET_OS_IPHONE inlcudes TARGET_OS_IOS TARGET_OS_TV and TARGET_OS_WATCH. see TargetConditionals.h
#undef CC_TARGET_PLATFORM #undef CC_TARGET_PLATFORM