Patched stdlib changes to compile on Windows.
--HG-- extra : rebase_source : a782472e239edc31e70be994953d4da5a55edd95
This commit is contained in:
parent
5a281a4fda
commit
1e82be1804
3 changed files with 5 additions and 4 deletions
|
@ -152,7 +152,9 @@ SDL_AtomicSet(SDL_atomic_t *a, int v)
|
|||
void*
|
||||
SDL_AtomicSetPtr(void **a, void *v)
|
||||
{
|
||||
#ifdef HAVE_MSC_ATOMICS
|
||||
#if defined(HAVE_MSC_ATOMICS) && (_M_IX86)
|
||||
return (void *) _InterlockedExchange((long *)a, (long) v);
|
||||
#elif defined(HAVE_MSC_ATOMICS) && (!_M_IX86)
|
||||
return _InterlockedExchangePointer(a, v);
|
||||
#elif defined(HAVE_GCC_ATOMICS)
|
||||
return __sync_lock_test_and_set(a, v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue