Fix non-working test
This commit is contained in:
@@ -226,13 +226,9 @@ system_get_process_status(int pid)
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
void system_memorybarrier()
|
void system_memorybarrier()
|
||||||
{
|
{
|
||||||
#ifdef MemoryBarrier
|
|
||||||
MemoryBarrier();
|
|
||||||
#else /* (mingw) */
|
|
||||||
LONG Barrier = 0;
|
LONG Barrier = 0;
|
||||||
__asm__ __volatile__("xchgl %%eax,%0 "
|
__asm__ __volatile__("xchgl %%eax,%0 "
|
||||||
: "=r" (Barrier));
|
: "=r" (Barrier));
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#else /* !_WIN32 */
|
#else /* !_WIN32 */
|
||||||
#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
|
#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user