summaryrefslogtreecommitdiff
path: root/src/atomic
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2013-03-07 20:42:55 -0800
committerSam Lantinga <slouken@libsdl.org>2013-03-07 20:42:55 -0800
commite4ff0d5a17a1ce8ad6da362aaea4f40a6e2c779e (patch)
treeb87f743329834340a9b71440167ba54664842896 /src/atomic
parent2952d9bf48b7ae8640a80e59be2659d838fa71e5 (diff)
Put the real SDL_AtomicCAS() and SDL_AtomicCASPtr() symbols into the library.
Diffstat (limited to 'src/atomic')
-rw-r--r--src/atomic/SDL_atomic.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/atomic/SDL_atomic.c b/src/atomic/SDL_atomic.c
index 34a298edc7..6cf2384a5d 100644
--- a/src/atomic/SDL_atomic.c
+++ b/src/atomic/SDL_atomic.c
@@ -27,6 +27,8 @@
doesn't have that compiler. That way we always have a working set of
atomic operations built into the library.
*/
+#undef SDL_AtomicCAS
+#undef SDL_AtomicCASPtr
/*
If any of the operations are not provided then we must emulate some
@@ -69,8 +71,8 @@ leaveLock(void *a)
SDL_AtomicUnlock(&locks[index]);
}
-SDL_bool
-SDL_AtomicCAS_(SDL_atomic_t *a, int oldval, int newval)
+DECLSPEC SDL_bool SDLCALL
+SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval)
{
SDL_bool retval = SDL_FALSE;
@@ -84,8 +86,8 @@ SDL_AtomicCAS_(SDL_atomic_t *a, int oldval, int newval)
return retval;
}
-SDL_bool
-SDL_AtomicCASPtr_(void **a, void *oldval, void *newval)
+DECLSPEC SDL_bool SDLCALL
+SDL_AtomicCASPtr(void **a, void *oldval, void *newval)
{
SDL_bool retval = SDL_FALSE;