Fix UWP detection error on WinCE.

The ntverp.h header is not avilable on Win32 WinCE, just like MinGW32.

Fixes #102 (merge from hash-predef)
This commit is contained in:
Rene Rivera
2020-02-29 08:06:33 -06:00
parent fa099f3b2c
commit c092d00770
2 changed files with 4 additions and 2 deletions

View File

@@ -12,6 +12,8 @@ http://www.boost.org/LICENSE_1_0.txt)
* Add `BOOST_ARCH_RISCV`. (from Andreas Schwab) * Add `BOOST_ARCH_RISCV`. (from Andreas Schwab)
* Add RISC-V endian detection. (from Thomas Petazzoni) * Add RISC-V endian detection. (from Thomas Petazzoni)
* Convert documentation to AsciiDoctor format. * Convert documentation to AsciiDoctor format.
* Document correct versions for C++ standard.
* Fix compile error from not available header when building in WinCE.
== 1.10 == 1.10

View File

@@ -32,8 +32,8 @@ UWP development.
#define BOOST_PLAT_WINDOWS_SDK_VERSION BOOST_VERSION_NUMBER_NOT_AVAILABLE #define BOOST_PLAT_WINDOWS_SDK_VERSION BOOST_VERSION_NUMBER_NOT_AVAILABLE
#if BOOST_OS_WINDOWS #if BOOST_OS_WINDOWS
// MinGW (32-bit) has no ntverp.h header // MinGW (32-bit), and WinCE, don't have a ntverp.h header
#if !defined(__MINGW32__) #if !defined(__MINGW32__) && !defined(_WIN32_WCE)
# include <ntverp.h> # include <ntverp.h>
# undef BOOST_PLAT_WINDOWS_SDK_VERSION # undef BOOST_PLAT_WINDOWS_SDK_VERSION
# define BOOST_PLAT_WINDOWS_SDK_VERSION BOOST_VERSION_NUMBER(0, 0, VER_PRODUCTBUILD) # define BOOST_PLAT_WINDOWS_SDK_VERSION BOOST_VERSION_NUMBER(0, 0, VER_PRODUCTBUILD)