Date: Mon, 23 Feb 2015 13:16:10 +0000 (UTC) From: Ganael LAPLANCHE <martymac@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r379673 - head/emulators/dolphin-emu/files Message-ID: <201502231316.t1NDGA5V016461@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: martymac Date: Mon Feb 23 13:16:09 2015 New Revision: 379673 URL: https://svnweb.freebsd.org/changeset/ports/379673 QAT: https://qat.redports.org/buildarchive/r379673/ Log: Fix build with Gcc 4.9 PR: 197890 Submitted by: gerald Added: head/emulators/dolphin-emu/files/patch-Source-Core-Common-Src-CommonFuncs.h (contents, props changed) Added: head/emulators/dolphin-emu/files/patch-Source-Core-Common-Src-CommonFuncs.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/emulators/dolphin-emu/files/patch-Source-Core-Common-Src-CommonFuncs.h Mon Feb 23 13:16:09 2015 (r379673) @@ -0,0 +1,24 @@ +--- Source/Core/Common/Src/CommonFuncs.h.orig 2015-02-23 09:00:42.000000000 +0100 ++++ Source/Core/Common/Src/CommonFuncs.h 2015-02-23 10:04:34.000000000 +0100 +@@ -12,6 +12,11 @@ + #define SLEEP(x) usleep(x*1000) + #endif + ++#if defined __FreeBSD__ ++#include <sys/cdefs.h> ++#define __GNUC_PREREQ __GNUC_PREREQ__ ++#endif ++ + #include <cstddef> + #include <type_traits> + +@@ -30,7 +35,8 @@ + #define b32(x) (b16(x) | (b16(x) >>16) ) + #define ROUND_UP_POW2(x) (b32(x - 1) + 1) + +-#if defined __GNUC__ && !defined __SSSE3__ && !defined _M_GENERIC ++#if (defined __GNUC__ && !__GNUC_PREREQ(4,9)) && \ ++ !defined __SSSE3__ && defined _M_X86 + #include <emmintrin.h> + static __inline __m128i __attribute__((__always_inline__)) + _mm_shuffle_epi8(__m128i a, __m128i mask)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502231316.t1NDGA5V016461>