From de7e3baabc46954027f0adcd3df07ac4a7cc677e Mon Sep 17 00:00:00 2001 From: Anthony Williams Date: Mon, 21 Mar 2011 23:09:07 +0000 Subject: [PATCH] Applied patch from issue #4849 [SVN r70383] --- src/win32/thread.cpp | 2 +- src/win32/tss_pe.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/win32/thread.cpp b/src/win32/thread.cpp index 72bf4190..7bdce652 100644 --- a/src/win32/thread.cpp +++ b/src/win32/thread.cpp @@ -9,7 +9,6 @@ #include #include -#include #ifndef UNDER_CE #include #endif @@ -20,6 +19,7 @@ #include #include #include +#include namespace boost { diff --git a/src/win32/tss_pe.cpp b/src/win32/tss_pe.cpp index 32de7868..3ea8a562 100644 --- a/src/win32/tss_pe.cpp +++ b/src/win32/tss_pe.cpp @@ -11,7 +11,7 @@ #if defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_LIB) -#if defined(__MINGW32__) && !defined(_WIN64) +#if #if (defined(__MINGW32__) && !defined(_WIN64)) || defined(__MINGW64__) #include @@ -38,7 +38,8 @@ namespace { } } -#if (__MINGW32_MAJOR_VERSION >3) || ((__MINGW32_MAJOR_VERSION==3) && (__MINGW32_MINOR_VERSION>=18)) +#if defined(__MINGW64__) || (__MINGW32_MAJOR_VERSION >3) || \ + ((__MINGW32_MAJOR_VERSION==3) && (__MINGW32_MINOR_VERSION>=18)) extern "C" { PIMAGE_TLS_CALLBACK __crt_xl_tls_callback__ __attribute__ ((section(".CRT$XLB"))) = on_tls_callback;