ports/graphics/freeimage/files/patch-Source_LibPNG_pngpriv.h
Piotr Kubaj 40ef348c53 graphics/freeimage: fix build on powerpc64 with CPUTYPE=power7 or higher and on powerpc64le
The bundled png is set up for VSX autodetection, but no actual VSX-related code is included.
2021-03-16 00:46:20 +00:00

14 lines
343 B
C

--- Source/LibPNG/pngpriv.h.orig 2021-03-16 00:44:46 UTC
+++ Source/LibPNG/pngpriv.h
@@ -193,11 +193,7 @@
#endif
#ifndef PNG_POWERPC_VSX_OPT
-# if defined(__PPC64__) && defined(__ALTIVEC__) && defined(__VSX__)
-# define PNG_POWERPC_VSX_OPT 2
-# else
# define PNG_POWERPC_VSX_OPT 0
-# endif
#endif
#ifndef PNG_INTEL_SSE_OPT