Commit b52fa0ec authored by C.W. Betts's avatar C.W. Betts Committed by Erik de Castro Lopo

Add Clang support for FLAC__SSE_TARGET

Signed-off-by: default avatarErik de Castro Lopo <erikd@mega-nerd.com>
parent 68c5886d
......@@ -108,7 +108,8 @@
#if __has_builtin(__builtin_ia32_pabsd256)
#define FLAC__AVX2_SUPPORTED 1
#endif
#elif defined __GNUC__ && !defined __clang__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) /* GCC 4.9+ */
#elif defined __GNUC__ && ((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 9)) /* GCC 4.9+ */ \
|| (defined __clang__ && (__clang_major__ > 3) || ( __clang_major__ == 3 || __clang_minor__ >= 8)) /* clang 3.8+ */)
#define FLAC__SSE_TARGET(x) __attribute__ ((__target__ (x)))
#define FLAC__SSE_SUPPORTED 1
#define FLAC__SSE2_SUPPORTED 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment