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