style fixup

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@749 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
hrydgard 2008-10-02 21:50:35 +00:00
parent 3d6d64c632
commit a2e0cdcbc1
2 changed files with 7 additions and 5 deletions

View File

@ -347,15 +347,14 @@ void Event::Wait()
int InterlockedExchangeAdd(int *Addend, int Increment)
{
#if defined(__GNUC__) && defined (__GNUC_MINOR__) && ((4 < __GNUC__) || (4 == __GNUC__ && 1 <= __GNUC_MINOR__))
return __sync_add_and_fetch(Addend, Increment);
#else
#error Sorry - GCC versions that don't support __sync_add_and_fetch are not supported.
// TODO support old gcc
#endif
}
#endif
} // end of namespace Common

View File

@ -114,7 +114,10 @@ void SleepCurrentThread(int ms);
void SetCurrentThreadName(const char *name);
#ifndef _WIN32
int InterlockedExchangeAdd(int *Addend, int Increment);
#endif
} // end of namespace Common