Ticket #6165: boost-1.48.0-gcc47-winthreads.patch

File boost-1.48.0-gcc47-winthreads.patch, 710 bytes (added by t.sailer@…, 11 years ago)

Threading Detection fix for gcc 4.7/mingw32 target

  • boost/config/stdlib/libstdcpp3.hpp

    old new  
    3434#ifdef __GLIBCXX__ // gcc 3.4 and greater:
    3535#  if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
    3636        || defined(_GLIBCXX__PTHREADS) \
    37         || defined(_GLIBCXX_HAS_GTHREADS)
     37        || defined(_GLIBCXX_HAS_GTHREADS) \
     38        || defined(_WIN32)
    3839      //
    3940      // If the std lib has thread support turned on, then turn it on in Boost
    4041      // as well.  We do this because some gcc-3.4 std lib headers define _REENTANT