From dc30df7dca0b2bad0c67dc1eef426b6e17c80ca0 Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Sat, 11 Jul 2009 03:10:10 +0000 Subject: [PATCH] fix building in linux git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3741 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/Thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Common/Src/Thread.h b/Source/Core/Common/Src/Thread.h index 55c2e62a2d..4820f660c6 100644 --- a/Source/Core/Common/Src/Thread.h +++ b/Source/Core/Common/Src/Thread.h @@ -74,14 +74,14 @@ namespace Common // MemFence: Neither the compiler nor the CPU can reorder memory accesses // beyond this barrier. +#ifdef _WIN32 __forceinline void MemFence() { -#ifdef _WIN32 MemoryBarrier(); +} #else // TODO: UNIX experts, please implement the memory fence. #endif -} class CriticalSection {