Skip to content

Instantly share code, notes, and snippets.

@jiejiecat
jiejiecat / CCPlatformConfig.h
Created June 8, 2012 17:59
cocos2d-x to determine platform by compile environment macro.
// define supported target platform macro which CC uses.
#define CC_PLATFORM_UNKNOWN 0
#define CC_PLATFORM_IOS 1
#define CC_PLATFORM_ANDROID 2
#define CC_PLATFORM_WIN32 3
#define CC_PLATFORM_MARMALADE 4
#define CC_PLATFORM_LINUX 5
#define CC_PLATFORM_BADA 6
#define CC_PLATFORM_QNX 7