Ticket #4849: mingw64-thread.patch

File mingw64-thread.patch, 569 bytes (added by Jim Bell <jim@…>, 12 years ago)
  • thread.cpp

     
    1010#include <boost/thread/thread.hpp>
    1111#include <algorithm>
    1212#include <windows.h>
     13
     14#if defined(__MINGW64__)
     15#undef InterlockedIncrement
     16#undef InterlockedDecrement
     17#undef InterlockedCompareExchange
     18#undef InterlockedExchange
     19#undef InterlockedExchangeAdd
     20#undef InterlockedCompareExchangePointer
     21#undef InterlockedExchangePointer
     22#endif
     23
     24
    1325#ifndef UNDER_CE
    1426#include <process.h>
    1527#endif