From ec47972526bb8fefb489ac148601d1ebb78fb1ce Mon Sep 17 00:00:00 2001 From: Christopher Kohlhoff Date: Thu, 3 Oct 2013 23:59:54 +0000 Subject: [PATCH] Fix WinRT detection. [SVN r86152] --- src/error_code.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error_code.cpp b/src/error_code.cpp index 68cb6ed..5e00588 100644 --- a/src/error_code.cpp +++ b/src/error_code.cpp @@ -26,7 +26,7 @@ # if defined( BOOST_WINDOWS_API ) # include -# if !defined(WINAPI_FAMILY) || ((WINAPI_FAMILY & WINAPI_PARTITION_APP) == 0) +# if !defined(WINAPI_FAMILY) || ((WINAPI_FAMILY & WINAPI_PARTITION_DESKTOP) != 0) # include "local_free_on_destruction.hpp" # endif # ifndef ERROR_INCORRECT_SIZE @@ -372,7 +372,7 @@ namespace std::string system_error_category::message( int ev ) const { -# if defined(WINAPI_FAMILY) && ((WINAPI_FAMILY & WINAPI_PARTITION_APP) != 0) +# if defined(WINAPI_FAMILY) && ((WINAPI_FAMILY & WINAPI_PARTITION_DESKTOP) == 0) std::string str( 128, char() ); for (;;) {