From ad3141cebdef5271d00d49cd993f86a2a81a0ac9 Mon Sep 17 00:00:00 2001 From: Mikael Olenfalk Date: Sun, 4 Oct 2015 14:23:22 +0200 Subject: [PATCH] universal-windows: Dont use Windows ANSI APIs when compiling for winrt --- include/boost/config/platform/win32.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/config/platform/win32.hpp b/include/boost/config/platform/win32.hpp index 60a29abe..450158fb 100644 --- a/include/boost/config/platform/win32.hpp +++ b/include/boost/config/platform/win32.hpp @@ -74,6 +74,14 @@ # define BOOST_HAS_GETSYSTEMTIMEASFILETIME #endif +// +// Windows Runtime +// +#if defined(WINAPI_FAMILY) && \ + (WINAPI_FAMILY == WINAPI_FAMILY_APP || WINAPI_FAMILY == WINAPI_FAMILY_PHONE_APP) +# define BOOST_NO_ANSI_APIS +#endif + #ifndef BOOST_DISABLE_WIN32 // WEK: Added #define BOOST_HAS_FTIME