1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-04-30 00:33:09 +00:00

Only use _ReadWriteBarrier on MSVC

It was causing compile errors when cross-compiling using mingw.

No functional change.
This commit is contained in:
Gary Linscott 2014-12-11 14:56:24 -05:00
parent f6d220ab14
commit 7b4828b68c

View file

@ -146,8 +146,8 @@ static int probe_wdl_table(Position& pos, int *success)
return 0;
}
// Memory barrier to ensure ptr->ready = 1 is not reordered.
#ifdef _WIN32
_ReadWriteBarrier();
#ifdef _MSC_VER
_ReadWriteBarrier();
#else
__asm__ __volatile__ ("" ::: "memory");
#endif