mirror of https://github.com/encounter/SDL.git
atomic: detect clang separately
This commit is contained in:
parent
8d1e0ca324
commit
ebdfd0e175
|
@ -36,20 +36,18 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The __atomic_load_n() intrinsic showed up in different times for different compilers. */
|
/* The __atomic_load_n() intrinsic showed up in different times for different compilers. */
|
||||||
#if defined(HAVE_GCC_ATOMICS)
|
#if defined(__clang__)
|
||||||
# if defined(__clang__)
|
# if __has_builtin(__atomic_load_n) || defined(HAVE_GCC_ATOMICS)
|
||||||
# if __has_builtin(__atomic_load_n)
|
/* !!! FIXME: this advertises as available in the NDK but uses an external symbol we don't have.
|
||||||
/* !!! FIXME: this advertises as available in the NDK but uses an external symbol we don't have.
|
It might be in a later NDK or we might need an extra library? --ryan. */
|
||||||
It might be in a later NDK or we might need an extra library? --ryan. */
|
# if !defined(__ANDROID__)
|
||||||
# if !defined(__ANDROID__)
|
# define HAVE_ATOMIC_LOAD_N 1
|
||||||
# define HAVE_ATOMIC_LOAD_N 1
|
# endif
|
||||||
# endif
|
# endif
|
||||||
# endif
|
#elif defined(__GNUC__)
|
||||||
# elif defined(__GNUC__)
|
|
||||||
# if (__GNUC__ >= 5)
|
# if (__GNUC__ >= 5)
|
||||||
# define HAVE_ATOMIC_LOAD_N 1
|
# define HAVE_ATOMIC_LOAD_N 1
|
||||||
# endif
|
# endif
|
||||||
# endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__WATCOMC__) && defined(__386__)
|
#if defined(__WATCOMC__) && defined(__386__)
|
||||||
|
|
Loading…
Reference in New Issue