summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/graphicsmagick/files/graphicsmagick-1.3.20-powerpc.patch')
-rw-r--r--media-gfx/graphicsmagick/files/graphicsmagick-1.3.20-powerpc.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/media-gfx/graphicsmagick/files/graphicsmagick-1.3.20-powerpc.patch b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.20-powerpc.patch
new file mode 100644
index 000000000000..44a13581e42a
--- /dev/null
+++ b/media-gfx/graphicsmagick/files/graphicsmagick-1.3.20-powerpc.patch
@@ -0,0 +1,20 @@
+--- GraphicsMagick-1.3.20/magick/studio.h
++++ GraphicsMagick-1.3.20/magick/studio.h
+@@ -51,12 +51,11 @@
+ threads. Most CPUs have cache lines of 32 or 64 bytes. IBM Power CPUs have
+ cache lines of 128 bytes.
+ */
+-/* FIXME: C pre-processor does not support comparing strings. */
+-/* #if defined(MAGICK_TARGET_CPU) && (MAGICK_TARGET_CPU == powerpc) */
+-/* # define MAGICK_CACHE_LINE_SIZE 128 */
+-/* #else */
+-# define MAGICK_CACHE_LINE_SIZE 64
+-/* #endif */
++#ifdef __powerpc__
++#define MAGICK_CACHE_LINE_SIZE 128
++#else
++#define MAGICK_CACHE_LINE_SIZE 64
++#endif
+
+
+ /*