diff --git a/cocos/platform/winrt/CCApplication.cpp b/cocos/platform/winrt/CCApplication.cpp index d6cb848e7f..02dfc998ce 100644 --- a/cocos/platform/winrt/CCApplication.cpp +++ b/cocos/platform/winrt/CCApplication.cpp @@ -214,11 +214,14 @@ LanguageType Application::getCurrentLanguage() Application::Platform Application::getTargetPlatform() { -#if (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP) - return Platform::OS_WP8; -#else - return Platform::OS_WINRT; -#endif + if (isWindowsPhone()) + { + return Platform::OS_WP8; + } + else + { + return Platform::OS_WINRT; + } } bool Application::openURL(const std::string &url)