From f4855f0e14f82bc250007ce6c40c4697c12eece2 Mon Sep 17 00:00:00 2001 From: halx99 Date: Sat, 4 Mar 2023 16:13:21 +0800 Subject: [PATCH] Add more compatible macros --- core/cocos2d.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/cocos2d.h b/core/cocos2d.h index 1a0c01abb4..1d577114ee 100644 --- a/core/cocos2d.h +++ b/core/cocos2d.h @@ -81,4 +81,14 @@ namespace cocos2d = ax; #define CC_INVALID_INDEX AX_INVALID_INDEX +#define CC_TARGET_PLATFORM AX_TARGET_PLATFORM +#define CC_PLATFORM_UNKNOWN AX_PLATFORM_UNKNOWN +#define CC_PLATFORM_IOS AX_PLATFORM_IOS +#define CC_PLATFORM_ANDROID AX_PLATFORM_ANDROID +#define CC_PLATFORM_WIN32 AX_PLATFORM_WIN32 +#define CC_PLATFORM_LINUX AX_PLATFORM_LINUX +#define CC_PLATFORM_MAC AX_PLATFORM_MAC + +#define CC_REQUIRES_NULL_TERMINATION AX_REQUIRES_NULL_TERMINATION + #endif // __COCOS2D_H__