include/SDL_atomic.h
changeset 9278 8900afb78a19
parent 8979 1e283b7a1580
child 9619 b94b6d0bff0f
     1.1 --- a/include/SDL_atomic.h	Sat Dec 13 02:33:52 2014 -0500
     1.2 +++ b/include/SDL_atomic.h	Thu Dec 18 00:19:52 2014 -0500
     1.3 @@ -122,7 +122,7 @@
     1.4  void _ReadWriteBarrier(void);
     1.5  #pragma intrinsic(_ReadWriteBarrier)
     1.6  #define SDL_CompilerBarrier()   _ReadWriteBarrier()
     1.7 -#elif defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5120))
     1.8 +#elif (defined(__GNUC__) && !defined(__EMSCRIPTEN__)) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x5120))
     1.9  /* This is correct for all CPUs when using GCC or Solaris Studio 12.1+. */
    1.10  #define SDL_CompilerBarrier()   __asm__ __volatile__ ("" : : : "memory")
    1.11  #else