src/atomic/SDL_atomic.c
changeset 6978 e851407e9294
parent 6885 700f1b25f77f
child 7191 75360622e65f
     1.1 --- a/src/atomic/SDL_atomic.c	Thu Mar 07 20:12:40 2013 -0800
     1.2 +++ b/src/atomic/SDL_atomic.c	Thu Mar 07 20:42:55 2013 -0800
     1.3 @@ -27,6 +27,8 @@
     1.4     doesn't have that compiler.  That way we always have a working set of
     1.5     atomic operations built into the library.
     1.6  */
     1.7 +#undef SDL_AtomicCAS
     1.8 +#undef SDL_AtomicCASPtr
     1.9   
    1.10  /* 
    1.11    If any of the operations are not provided then we must emulate some
    1.12 @@ -69,8 +71,8 @@
    1.13      SDL_AtomicUnlock(&locks[index]);
    1.14  }
    1.15  
    1.16 -SDL_bool
    1.17 -SDL_AtomicCAS_(SDL_atomic_t *a, int oldval, int newval)
    1.18 +DECLSPEC SDL_bool SDLCALL
    1.19 +SDL_AtomicCAS(SDL_atomic_t *a, int oldval, int newval)
    1.20  {
    1.21      SDL_bool retval = SDL_FALSE;
    1.22  
    1.23 @@ -84,8 +86,8 @@
    1.24      return retval;
    1.25  }
    1.26  
    1.27 -SDL_bool
    1.28 -SDL_AtomicCASPtr_(void **a, void *oldval, void *newval)
    1.29 +DECLSPEC SDL_bool SDLCALL
    1.30 +SDL_AtomicCASPtr(void **a, void *oldval, void *newval)
    1.31  {
    1.32      SDL_bool retval = SDL_FALSE;
    1.33