mirror of
https://github.com/boostorg/predef.git
synced 2025-08-01 04:34:26 +02:00
Fix BOOST_PLAT_WINDOWS_* defs being defined on non-Windows systems.
This commit is contained in:
@@ -10,6 +10,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#include <boost/predef/version_number.h>
|
#include <boost/predef/version_number.h>
|
||||||
#include <boost/predef/make.h>
|
#include <boost/predef/make.h>
|
||||||
|
#include <boost/predef/os/windows.h>
|
||||||
|
|
||||||
/*`
|
/*`
|
||||||
[heading `BOOST_PLAT_WINDOWS_DESKTOP`]
|
[heading `BOOST_PLAT_WINDOWS_DESKTOP`]
|
||||||
@@ -24,7 +25,8 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#define BOOST_PLAT_WINDOWS_DESKTOP BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
#define BOOST_PLAT_WINDOWS_DESKTOP BOOST_VERSION_NUMBER_NOT_AVAILABLE
|
||||||
|
|
||||||
#if !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP)
|
#if BOOST_OS_WINDOWS && \
|
||||||
|
( !defined(WINAPI_FAMILY) || (WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP) )
|
||||||
# undef BOOST_PLAT_WINDOWS_DESKTOP
|
# undef BOOST_PLAT_WINDOWS_DESKTOP
|
||||||
# define BOOST_PLAT_WINDOWS_DESKTOP BOOST_VERSION_NUMBER_AVAILABLE
|
# define BOOST_PLAT_WINDOWS_DESKTOP BOOST_VERSION_NUMBER_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
@@ -10,6 +10,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#include <boost/predef/version_number.h>
|
#include <boost/predef/version_number.h>
|
||||||
#include <boost/predef/make.h>
|
#include <boost/predef/make.h>
|
||||||
|
#include <boost/predef/os/windows.h>
|
||||||
|
|
||||||
/*`
|
/*`
|
||||||
[heading `BOOST_PLAT_WINDOWS_PHONE`]
|
[heading `BOOST_PLAT_WINDOWS_PHONE`]
|
||||||
@@ -23,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 WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
|
#if BOOST_OS_WINDOWS && 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
|
||||||
|
@@ -10,6 +10,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#include <boost/predef/version_number.h>
|
#include <boost/predef/version_number.h>
|
||||||
#include <boost/predef/make.h>
|
#include <boost/predef/make.h>
|
||||||
|
#include <boost/predef/os/windows.h>
|
||||||
|
|
||||||
/*`
|
/*`
|
||||||
[heading `BOOST_PLAT_WINDOWS_RUNTIME`]
|
[heading `BOOST_PLAT_WINDOWS_RUNTIME`]
|
||||||
@@ -24,7 +25,8 @@ 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 WINAPI_FAMILY == WINAPI_FAMILY_APP || WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP
|
#if BOOST_OS_WINDOWS && \
|
||||||
|
( 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
|
||||||
#endif
|
#endif
|
||||||
|
@@ -10,6 +10,7 @@ http://www.boost.org/LICENSE_1_0.txt)
|
|||||||
|
|
||||||
#include <boost/predef/version_number.h>
|
#include <boost/predef/version_number.h>
|
||||||
#include <boost/predef/make.h>
|
#include <boost/predef/make.h>
|
||||||
|
#include <boost/predef/os/windows.h>
|
||||||
|
|
||||||
/*`
|
/*`
|
||||||
[heading `BOOST_PLAT_WINDOWS_STORE`]
|
[heading `BOOST_PLAT_WINDOWS_STORE`]
|
||||||
@@ -23,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 WINAPI_FAMILY == WINAPI_FAMILY_APP
|
#if BOOST_OS_WINDOWS && 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