Files
ports/games/dhewm3/files/patch-renderer_tr__main.cpp
T
Dmitry Marakasov 9e0ec678f8 - Add USES=compiler:c++11-lang to fix build on GCC architectures
- Also, add patch to fix build on powerpc

PR:		235668
Submitted by:	pkubaj@anongoth.pl
2019-02-12 15:20:28 +00:00

18 lines
613 B
C++

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235668:
On powerpc* platforms vecLib/vecLib.h is included by default. This
header is only available on Mac OS X, so remove it. It doesn't seem
to be actually needed to compile this port
--- renderer/tr_main.cpp.orig 2019-02-11 12:39:53 UTC
+++ renderer/tr_main.cpp
@@ -26,7 +26,7 @@ If you have questions concerning this license or the a
===========================================================================
*/
-#ifdef __ppc__
+#if defined(__ppc__) && defined(__APPLE__)
#include <vecLib/vecLib.h>
#endif
#if defined(__GNUC__) && defined(__SSE2__)