void-packages/srcpkgs/dhewm3/patches/ppc64.patch
q66 2afbaebc1d dhewm3: fix build on ppc/ppc64
This disables some altivec bits specific to MacOS on Linux.
2019-02-09 19:05:26 -02:00

26 lines
943 B
Diff

Fixes build as the altivec bits include a MacOS-specific header.
Original author: <frediz@linux.vnet.ibm.com>
--- neo/idlib/math/Simd_AltiVec.cpp 2017-07-12 12:34:33.000000000 +0000
+++ neo/idlib/math/Simd_AltiVec.cpp 2017-07-12 12:43:51.863029647 +0000
@@ -45,7 +45,7 @@
//
//===============================================================
-#if defined(__GNUC__) && defined(__ALTIVEC__)
+#if defined(MACOS_X) && defined(__GNUC__) && defined(__ALTIVEC__)
#ifdef PPC_INTRINSICS
// for square root estimate instruction
--- neo/idlib/math/Simd_AltiVec.h 2017-07-12 12:34:33.000000000 +0000
+++ neo/idlib/math/Simd_AltiVec.h 2017-07-12 12:38:38.083750262 +0000
@@ -110,7 +110,7 @@
//#define DRAWVERT_PADDED
class idSIMD_AltiVec : public idSIMD_Generic {
-#if defined(__GNUC__) && defined(__ALTIVEC__)
+#if defined(MACOS_X) && defined(__GNUC__) && defined(__ALTIVEC__)
public:
virtual const char * VPCALL GetName( void ) const;