include/SDL_atomic.h
changeset 11318 06fd8421e8f6
parent 10879 773cbb61ad27
child 11330 6ae35c5f7f7b
     1.1 --- a/include/SDL_atomic.h	Thu Aug 17 21:35:46 2017 -0400
     1.2 +++ b/include/SDL_atomic.h	Fri Aug 18 16:35:55 2017 -0400
     1.3 @@ -125,6 +125,9 @@
     1.4  #elif (defined(__GNUC__) && !defined(__EMSCRIPTEN__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5120))
     1.5  /* This is correct for all CPUs when using GCC or Solaris Studio 12.1+. */
     1.6  #define SDL_CompilerBarrier()   __asm__ __volatile__ ("" : : : "memory")
     1.7 +#elif defined(__WATCOMC__)
     1.8 +extern _inline void SDL_CompilerBarrier (void);
     1.9 +#pragma aux SDL_CompilerBarrier = "" parm [] modify exact [];
    1.10  #else
    1.11  #define SDL_CompilerBarrier()   \
    1.12  { SDL_SpinLock _tmp = 0; SDL_AtomicLock(&_tmp); SDL_AtomicUnlock(&_tmp); }