summaryrefslogtreecommitdiff
blob: d078fcd6319d1939915df9858d97eeab4c86af76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
commit 70dfc29c883588a6bf7d609dd70193f3ce49509d
Author: Omer Bar-or <omer@bar-or.org>
Date:   Mon Feb 15 22:53:16 2010 -0800

    Added check for MagickLibAddendum (replaced MagickLibSubversion).

Applied minus a whitespace-only part that did not apply as-is.

diff --git a/ext/RMagick/extconf.rb b/ext/RMagick/extconf.rb
index 6446d40..78a6260 100644
--- a/ext/RMagick/extconf.rb
+++ b/ext/RMagick/extconf.rb
@@ -233,6 +233,7 @@ have_func("snprintf", headers)
    "LevelColorsImageChannel",        # 6.5.6-4
    "LevelizeImageChannel",           # 6.4.2
    "LiquidRescaleImage",             # 6.3.8-2
+   "MagickLibAddendum",              # 6.5.9-1
    "OpaquePaintImageChannel",        # 6.3.7-10
    "QueueAuthenticPixels",           # 6.4.5-6
    "RemapImage",                     # 6.4.4-0
diff --git a/ext/RMagick/rmagick.h b/ext/RMagick/rmagick.h
index e18a678..8aa6f3f 100644
--- a/ext/RMagick/rmagick.h
+++ b/ext/RMagick/rmagick.h
@@ -162,6 +162,13 @@
 #define DestroyConstitute(void) ConstituteComponentTerminus(void)
 #endif
 
+/** ImageMagick 6.5.9 replaced MagickLibSubversion with
+ * MagickLibAddendum.
+ */
+#if defined(HAVE_MAGICKLIBADDENDUM)
+#define MagickLibSubversion MagickLibAddendum
+#endif
+
 /** IM 6.4.1 replaced AllocateImage with AcquireImage.
  * Both have the same signature.
  */