Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add conditional code for HAVE_NEW_REMOVEIMAGEPROFILE. Handle the new …

…prototype for RemoveImageProfile.
  • Loading branch information...
commit 67591667f111bd1014ba53435a89e553f572ba5c 1 parent 4b88349
rmagick authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 ext/RMagick/rmimage.c
View
10 ext/RMagick/rmimage.c
@@ -1,4 +1,4 @@
-/* $Id: rmimage.c,v 1.89.2.2 2005/02/27 15:42:09 rmagick Exp $ */
+/* $Id: rmimage.c,v 1.89.2.3 2005/04/02 21:36:29 rmagick Exp $ */
/*============================================================================\
| Copyright (C) 2004 by Timothy P. Hunter
| Name: rmimage.c
@@ -1381,11 +1381,15 @@ Image_color_profile_eq(VALUE self, VALUE profile)
if (profile == Qnil)
{
+#if defined(HAVE_NEW_REMOVEIMAGEPROFILE)
+ (void)RemoveImageProfile(image, "icc");
+#else
str_info = RemoveImageProfile(image, "icc");
if(str_info)
{
DestroyStringInfo(str_info);
}
+#endif
}
else
{
@@ -4011,11 +4015,15 @@ Image_iptc_profile_eq(VALUE self, VALUE profile)
if (profile == Qnil)
{
+#if defined(HAVE_NEW_REMOVEIMAGEPROFILE)
+ (void)RemoveImageProfile(image, "iptc");
+#else
str_info = RemoveImageProfile(image, "iptc");
if(str_info)
{
DestroyStringInfo(str_info);
}
+#endif
}
else
{
Please sign in to comment.
Something went wrong with that request. Please try again.