updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / mingw32-boost-static / boost_thread_win32.patch
blobcc2cb99bea640611d83c7e475ad3577f9c2cc152
1 --- boost_1_43_0/libs/thread/src/win32/tss_pe.cpp 2008-10-13 22:30:13.000000000 +0200
2 +++ boost_1_43_0-new/libs/thread/src/win32/tss_pe.cpp 2010-07-04 00:28:50.352555432 +0200
3 @@ -11,7 +11,14 @@
5 #if defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_LIB)
7 -#if (defined(__MINGW32__) && !defined(_WIN64)) || defined(__MINGW64__)
8 +#if !defined(_WIN64) && defined(__MINGW32__)
10 +#if __MINGW32_MAJOR_VERSION > 3 || __MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 18
12 +// MinGW32 3.18 and later has his own TLS implementation
13 +extern "C" void tss_cleanup_implemented(void) {}
15 +#else
17 #include <boost/thread/detail/tss_hooks.hpp>
19 @@ -77,6 +84,9 @@
23 +#endif // __MINGW32_MAJOR_VERSION > 3 || __MINGW32_MAJOR_VERSION == 3 && __MINGW32_MINOR_VERSION >= 18
26 #elif defined(_MSC_VER) && !defined(UNDER_CE)
28 #include <boost/thread/detail/tss_hooks.hpp>