On Thu, Mar 2, 2017 at 11:03 AM, Andrey Turkin <andrey.turkin at gmail.com> wrote: > +#if _WIN32_WINNT < 0x0600 && defined(__MINGW32__) > +#undef MemoryBarrier > +#define MemoryBarrier __sync_synchronize > +#endif What about the case of _WIN32_WINNT < 0x0600 && !defined(__MINGW32__)?