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:
parent
f6d220ab14
commit
7b4828b68c
1 changed files with 2 additions and 2 deletions
|
@ -146,8 +146,8 @@ static int probe_wdl_table(Position& pos, int *success)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// Memory barrier to ensure ptr->ready = 1 is not reordered.
|
// Memory barrier to ensure ptr->ready = 1 is not reordered.
|
||||||
#ifdef _WIN32
|
#ifdef _MSC_VER
|
||||||
_ReadWriteBarrier();
|
_ReadWriteBarrier();
|
||||||
#else
|
#else
|
||||||
__asm__ __volatile__ ("" ::: "memory");
|
__asm__ __volatile__ ("" ::: "memory");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue