svn commit: r304164 - head/audio/wavpack/files
Chris Rees
crees at FreeBSD.org
Wed Sep 12 21:22:41 UTC 2012
Author: crees
Date: Wed Sep 12 21:22:40 2012
New Revision: 304164
URL: http://svn.freebsd.org/changeset/ports/304164
Log:
Fix clang build.
Thanks to theraven for helping to track down the problem.
PR: ports/168896
Reviewed by: multimedia (mav, briefly)
Added:
head/audio/wavpack/files/
head/audio/wavpack/files/patch-src__wavpack_local.h (contents, props changed)
Added: head/audio/wavpack/files/patch-src__wavpack_local.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/audio/wavpack/files/patch-src__wavpack_local.h Wed Sep 12 21:22:40 2012 (r304164)
@@ -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)
More information about the svn-ports-all
mailing list