|
Lines 1-36
Link Here
|
| 1 |
From 12fa28b260c89d39fc4fe83ed02d92da172257a3 Mon Sep 17 00:00:00 2001 |
|
|
| 2 |
From: yamir <yamir@localhost.localdomain> |
| 3 |
Date: Sun, 7 Jul 2019 18:07:39 +0200 |
| 4 |
Subject: [PATCH] Fix ppc64le build |
| 5 |
|
| 6 |
--- |
| 7 |
neo/idlib/math/Simd_AltiVec.cpp | 2 +- |
| 8 |
neo/idlib/math/Simd_AltiVec.h | 2 +- |
| 9 |
2 files changed, 2 insertions(+), 2 deletions(-) |
| 10 |
|
| 11 |
diff --git a/neo/idlib/math/Simd_AltiVec.cpp b/neo/idlib/math/Simd_AltiVec.cpp |
| 12 |
index 96ac930a..8f8ab4ea 100644 |
| 13 |
--- idlib/math/Simd_AltiVec.cpp |
| 14 |
+++ idlib/math/Simd_AltiVec.cpp |
| 15 |
@@ -45,7 +45,7 @@ If you have questions concerning this license or the applicable additional terms |
| 16 |
// |
| 17 |
//=============================================================== |
| 18 |
|
| 19 |
-#if defined(__GNUC__) && defined(__ALTIVEC__) |
| 20 |
+#if defined(MACOS_X) && defined(__GNUC__) && defined(__ALTIVEC__) |
| 21 |
|
| 22 |
#ifdef PPC_INTRINSICS |
| 23 |
// for square root estimate instruction |
| 24 |
diff --git a/neo/idlib/math/Simd_AltiVec.h b/neo/idlib/math/Simd_AltiVec.h |
| 25 |
index 2a5776eb..d5080824 100644 |
| 26 |
--- idlib/math/Simd_AltiVec.h |
| 27 |
+++ idlib/math/Simd_AltiVec.h |
| 28 |
@@ -110,7 +110,7 @@ If you have questions concerning this license or the applicable additional terms |
| 29 |
//#define DRAWVERT_PADDED |
| 30 |
|
| 31 |
class idSIMD_AltiVec : public idSIMD_Generic { |
| 32 |
-#if defined(__GNUC__) && defined(__ALTIVEC__) |
| 33 |
+#if defined(MACOS_X) && defined(__GNUC__) && defined(__ALTIVEC__) |
| 34 |
public: |
| 35 |
|
| 36 |
virtual const char * VPCALL GetName( void ) const; |