Permalink
Browse files

[fix bug 27467] Made RMagick check for new ImageMagick method Constit…

…uteComponentTerminus, which replaced DestroyConstitute in 6.5.7, and use it if it exists.
  • Loading branch information...
1 parent 0beb9b3 commit 98857201d56b2b987796309e8a5ea32f4d8ddc8c baror committed Nov 22, 2009
Showing with 8 additions and 1 deletion.
  1. +1 −0 ext/RMagick/extconf.rb
  2. +7 −1 ext/RMagick/rmagick.h
@@ -197,6 +197,7 @@ def check_multiple_imagemagick_versions()
"AutoGammaImageChannel", # 6.5.5-1
"AutoLevelImageChannel", # 6.5.5-1
"BlueShiftImage", # 6.5.4-3
+ "ConstituteComponentTerminus", # 6.5.7-9
"DeskewImage", # 6.4.2-5
"EncipherImage", # 6.3.8-6
"EqualizeImageChannel", # 6.3.6-9
@@ -1,4 +1,4 @@
-/* $Id: rmagick.h,v 1.278 2009/09/15 22:09:44 rmagick Exp $ */
+/* $Id: rmagick.h,v 1.279 2009/11/22 00:38:15 baror Exp $ */
/*=============================================================================
| Copyright (C) 2009 by Timothy P. Hunter
| Name: rmagick.h
@@ -140,6 +140,12 @@
f = NULL;
+// ImageMagick 6.5.7 replaced DestroyConstitute with ConstituteComponentTerminus
+// Both have the same signature.
+#if defined(HAVE_CONSTITUTECOMPONENTTERMINUS)
+#define DestroyConstitute(void) ConstituteComponentTerminus(void)
+#endif
+
// IM 6.4.1 replaced AllocateImage with AcquireImage.
// Both have the same signature.
#if !defined(HAVE_ACQUIREIMAGE)

0 comments on commit 9885720

Please sign in to comment.