diff options
author | crees <crees@FreeBSD.org> | 2012-09-13 05:22:40 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2012-09-13 05:22:40 +0800 |
commit | 811ae49cec343058b9f9937d39712e6258bdbba1 (patch) | |
tree | 4ab9b737755c486f046a8885a65fca34a79f46e6 /audio | |
parent | b6e49e127628a2d2f424ad45285e56e359ded161 (diff) | |
download | freebsd-ports-gnome-811ae49cec343058b9f9937d39712e6258bdbba1.tar.gz freebsd-ports-gnome-811ae49cec343058b9f9937d39712e6258bdbba1.tar.zst freebsd-ports-gnome-811ae49cec343058b9f9937d39712e6258bdbba1.zip |
Fix clang build.
Thanks to theraven for helping to track down the problem.
PR: ports/168896
Reviewed by: multimedia (mav, briefly)
Diffstat (limited to 'audio')
-rw-r--r-- | audio/wavpack/files/patch-src__wavpack_local.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/wavpack/files/patch-src__wavpack_local.h b/audio/wavpack/files/patch-src__wavpack_local.h new file mode 100644 index 000000000000..d86d02371062 --- /dev/null +++ b/audio/wavpack/files/patch-src__wavpack_local.h @@ -0,0 +1,22 @@ +--- ./src/wavpack_local.h.orig 2009-12-01 04:24:50.000000000 +0000 ++++ ./src/wavpack_local.h 2012-09-12 21:12:47.161974704 +0100 +@@ -11,6 +11,10 @@ + #ifndef WAVPACK_LOCAL_H + #define WAVPACK_LOCAL_H + ++#ifndef __has_builtin ++#define __has_builtin(x) 0 ++#endif ++ + #if defined(WIN32) + #define FASTCALL __fastcall + #else +@@ -768,7 +772,7 @@ + #define _m_paddd(m1, m2) __builtin_ia32_paddd (m1, m2) + #define _m_pcmpeqd(m1, m2) __builtin_ia32_pcmpeqd (m1, m2) + +-#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) || __GNUC__ > 4 ++#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) || __GNUC__ > 4 || __has_builtin(__builtin_ia32_pslldi) + # define _m_pslldi(m1, m2) __builtin_ia32_pslldi ((__m64)m1, m2) + # define _m_psradi(m1, m2) __builtin_ia32_psradi ((__m64)m1, m2) + # define _m_psrldi(m1, m2) __builtin_ia32_psrldi ((__m64)m1, m2) |