From 771a69709f4a5c74be39e4d077dadd9f0a43d8e3 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 5 Oct 2016 13:26:40 +0800 Subject: [PATCH] fix for #16589 (#16636) --- cocos/platform/CMakeLists.txt | 1 + cocos/platform/apple/CCDevice-apple.mm | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/cocos/platform/CMakeLists.txt b/cocos/platform/CMakeLists.txt index 04015d58cf..cab108af8e 100644 --- a/cocos/platform/CMakeLists.txt +++ b/cocos/platform/CMakeLists.txt @@ -44,6 +44,7 @@ set(COCOS_PLATFORM_SPECIFIC_SRC platform/apple/CCLock-apple.cpp platform/apple/CCFileUtils-apple.mm platform/apple/CCThread-apple.mm + platform/apple/CCDevice-apple.mm platform/desktop/CCGLViewImpl-desktop.cpp ) diff --git a/cocos/platform/apple/CCDevice-apple.mm b/cocos/platform/apple/CCDevice-apple.mm index 5f60a874ef..41afc6601a 100644 --- a/cocos/platform/apple/CCDevice-apple.mm +++ b/cocos/platform/apple/CCDevice-apple.mm @@ -23,6 +23,22 @@ THE SOFTWARE. ****************************************************************************/ +#include "platform/CCPlatformConfig.h" +#include "platform/CCDevice.h" + +#if CC_TARGET_PLATFORM == CC_PLATFORM_MAC + +#include +#include +#include + +#elif CC_TARGET_PLATFORM == CC_PLATFORM_IOS + +#import + +#endif + +#include "base/ccTypes.h" #include "platform/apple/CCDevice-apple.h" namespace FontUtils {