include/SDL_atomic.h
changeset 11330 6ae35c5f7f7b
parent 11318 06fd8421e8f6
child 11706 d5d95b296cb0
     1.1 --- a/include/SDL_atomic.h	Sat Aug 19 02:23:50 2017 -0700
     1.2 +++ b/include/SDL_atomic.h	Sat Aug 19 03:07:44 2017 -0700
     1.3 @@ -118,7 +118,7 @@
     1.4   * The compiler barrier prevents the compiler from reordering
     1.5   * reads and writes to globally visible variables across the call.
     1.6   */
     1.7 -#if defined(_MSC_VER) && (_MSC_VER > 1200)
     1.8 +#if defined(_MSC_VER) && (_MSC_VER > 1200) && !defined(__clang__)
     1.9  void _ReadWriteBarrier(void);
    1.10  #pragma intrinsic(_ReadWriteBarrier)
    1.11  #define SDL_CompilerBarrier()   _ReadWriteBarrier()