mirror of
https://github.com/boostorg/predef.git
synced 2025-08-01 20:54:25 +02:00
Updating BOOST_PLAT_WINDOWS_* predef check to make sure macro WINAPI_FAMILY exists before comparing.
This commit is contained in:
@@ -24,7 +24,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#define BOOST_PLAT_WINDOWS_PHONE BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
#define BOOST_PLAT_WINDOWS_PHONE BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||||
|
|
||||||
#if BOOST_OS_WINDOWS && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
|
#if BOOST_OS_WINDOWS && defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
|
||||||
# undef BOOST_PLAT_WINDOWS_PHONE
|
# undef BOOST_PLAT_WINDOWS_PHONE
|
||||||
# define BOOST_PLAT_WINDOWS_PHONE BOOST_VERSION_NUMBER_AVAILABLE
|
# define BOOST_PLAT_WINDOWS_PHONE BOOST_VERSION_NUMBER_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
@@ -25,7 +25,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
#define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||||
|
|
||||||
#if BOOST_OS_WINDOWS && \
|
#if BOOST_OS_WINDOWS && defined(WINAPI_FAMILY) && \
|
||||||
( WINAPI_FAMILY == WINAPI_FAMILY_APP || WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP )
|
( WINAPI_FAMILY == WINAPI_FAMILY_APP || WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP )
|
||||||
# undef BOOST_PLAT_WINDOWS_RUNTIME
|
# undef BOOST_PLAT_WINDOWS_RUNTIME
|
||||||
# define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_AVAILABLE
|
# define BOOST_PLAT_WINDOWS_RUNTIME BOOST_VERSION_NUMBER_AVAILABLE
|
||||||
|
@@ -24,7 +24,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#define BOOST_PLAT_WINDOWS_STORE BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
#define BOOST_PLAT_WINDOWS_STORE BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||||
|
|
||||||
#if BOOST_OS_WINDOWS && WINAPI_FAMILY == WINAPI_FAMILY_APP
|
#if BOOST_OS_WINDOWS && defined(WINAPI_FAMILY) && WINAPI_FAMILY == WINAPI_FAMILY_APP
|
||||||
# undef BOOST_PLAT_WINDOWS_STORE
|
# undef BOOST_PLAT_WINDOWS_STORE
|
||||||
# define BOOST_PLAT_WINDOWS_STORE BOOST_VERSION_NUMBER_AVAILABLE
|
# define BOOST_PLAT_WINDOWS_STORE BOOST_VERSION_NUMBER_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user