Updated source to match SDL function prototype style

This commit is contained in:
Sam Lantinga
2023-05-23 09:37:07 -07:00
parent a828f5897e
commit 737aa881fa
39 changed files with 95 additions and 191 deletions

View File

@@ -203,8 +203,7 @@ int SDL_AtomicSet(SDL_AtomicInt *a, int v)
#endif
}
void *
SDL_AtomicSetPtr(void **a, void *v)
void *SDL_AtomicSetPtr(void **a, void *v)
{
#ifdef HAVE_MSC_ATOMICS
return _InterlockedExchangePointer(a, v);
@@ -270,8 +269,7 @@ int SDL_AtomicGet(SDL_AtomicInt *a)
#endif
}
void *
SDL_AtomicGetPtr(void **a)
void *SDL_AtomicGetPtr(void **a)
{
#ifdef HAVE_ATOMIC_LOAD_N
return __atomic_load_n(a, __ATOMIC_SEQ_CST);