ext/RMagick/rmimage.c in rmagick-1.7.3 vs ext/RMagick/rmimage.c in rmagick-1.7.4
- old
+ new
@@ -1,6 +1,6 @@
-/* $Id: rmimage.c,v 1.89.2.2 2005/02/27 15:42:09 rmagick Exp $ */
+/* $Id: rmimage.c,v 1.89.2.2.4.1 2005/04/02 22:00:13 rmagick Exp $ */
/*============================================================================\
| Copyright (C) 2004 by Timothy P. Hunter
| Name: rmimage.c
| Author: Tim Hunter
| Purpose: Image class method definitions for RMagick
@@ -1379,15 +1379,19 @@
rm_check_frozen(self);
Data_Get_Struct(self, Image, image);
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
{
str_info = StringToStringInfo(STRING_PTR(profile));
if (str_info)
@@ -4009,14 +4013,18 @@
rm_check_frozen(self);
Data_Get_Struct(self, Image, image);
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
{
str_info = StringToStringInfo(STRING_PTR(profile));
if (str_info)