Ticket #12036: boost_thread_winapi_versions_not_defined.patch

File boost_thread_winapi_versions_not_defined.patch, 753 bytes (added by Diego Barrios Romero <eldruin@…>, 7 years ago)
  • src/win32/thread.cpp

     src/win32/thread.cpp | 4 +---
     1 file changed, 1 insertion(+), 3 deletions(-)
    
    diff --git a/src/win32/thread.cpp b/src/win32/thread.cpp
    index 886e5d1..a8c1c34 100644
    a b namespace boost  
    529529    unsigned thread::physical_concurrency() BOOST_NOEXCEPT
    530530    {
    531531      // a bit too strict: Windows XP with SP3 would be sufficient
    532 #if BOOST_PLAT_WINDOWS_RUNTIME                                    \
    533     || ( defined(BOOST_USE_WINAPI_VERSION) && ( BOOST_USE_WINAPI_VERSION <= BOOST_WINAPI_VERSION_WINXP ) ) \
    534     || ( ( defined(__MINGW32__) && !defined(__MINGW64__) ) && _WIN32_WINNT < 0x0600)
     532#if defined(BOOST_WINAPI_VERSION_WINXP)
    535533        return 0;
    536534#else
    537535        unsigned cores = 0;