use isWindowsPhone() to check for Windows Phone platform

This commit is contained in:
Dale Stammen 2015-08-26 09:47:59 -07:00
parent 161954da87
commit 09a1211c96
1 changed files with 8 additions and 5 deletions

View File

@ -214,11 +214,14 @@ LanguageType Application::getCurrentLanguage()
Application::Platform Application::getTargetPlatform() Application::Platform Application::getTargetPlatform()
{ {
#if (WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP) if (isWindowsPhone())
return Platform::OS_WP8; {
#else return Platform::OS_WP8;
return Platform::OS_WINRT; }
#endif else
{
return Platform::OS_WINRT;
}
} }
bool Application::openURL(const std::string &url) bool Application::openURL(const std::string &url)