include/SDL_atomic.h
changeset 7004 18d4df6942c2
parent 6978 e851407e9294
child 7191 75360622e65f
     1.1 --- a/include/SDL_atomic.h	Fri Mar 15 01:01:20 2013 -0400
     1.2 +++ b/include/SDL_atomic.h	Fri Mar 15 01:09:19 2013 -0400
     1.3 @@ -205,7 +205,7 @@
     1.4   * \return The previous value of the atomic variable.
     1.5   */
     1.6  #ifndef SDL_AtomicSet
     1.7 -static __inline__ int SDL_AtomicSet(SDL_atomic_t *a, int v)
     1.8 +SDL_FORCE_INLINE int SDL_AtomicSet(SDL_atomic_t *a, int v)
     1.9  {
    1.10      int value;
    1.11      do {
    1.12 @@ -219,7 +219,7 @@
    1.13   * \brief Get the value of an atomic variable
    1.14   */
    1.15  #ifndef SDL_AtomicGet
    1.16 -static __inline__ int SDL_AtomicGet(SDL_atomic_t *a)
    1.17 +SDL_FORCE_INLINE int SDL_AtomicGet(SDL_atomic_t *a)
    1.18  {
    1.19      int value = a->value;
    1.20      SDL_CompilerBarrier();
    1.21 @@ -235,7 +235,7 @@
    1.22   * \note This same style can be used for any number operation
    1.23   */
    1.24  #ifndef SDL_AtomicAdd
    1.25 -static __inline__ int SDL_AtomicAdd(SDL_atomic_t *a, int v)
    1.26 +SDL_FORCE_INLINE int SDL_AtomicAdd(SDL_atomic_t *a, int v)
    1.27  {
    1.28      int value;
    1.29      do {
    1.30 @@ -279,7 +279,7 @@
    1.31   * \return The previous value of the pointer.
    1.32   */
    1.33  #ifndef SDL_AtomicSetPtr
    1.34 -static __inline__ void* SDL_AtomicSetPtr(void* *a, void* v)
    1.35 +SDL_FORCE_INLINE void* SDL_AtomicSetPtr(void* *a, void* v)
    1.36  {
    1.37      void* value;
    1.38      do {
    1.39 @@ -293,7 +293,7 @@
    1.40   * \brief Get the value of a pointer atomically.
    1.41   */
    1.42  #ifndef SDL_AtomicGetPtr
    1.43 -static __inline__ void* SDL_AtomicGetPtr(void* *a)
    1.44 +SDL_FORCE_INLINE void* SDL_AtomicGetPtr(void* *a)
    1.45  {
    1.46      void* value = *a;
    1.47      SDL_CompilerBarrier();