]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 18 Feb 2012 21:34:08 +0000 (21:34 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 18 Feb 2012 21:34:08 +0000 (21:34 +0000)
MagickCore/studio.h
MagickWand/studio.h

index 73622e9f92c0b96570b4fe8859b945236fd9ddec..526486338dafb5a6f1ecb3dc6e2d6fca4b28f598 100644 (file)
@@ -256,14 +256,14 @@ extern int vsnprintf(char *,size_t,const char *,va_list);
 #  define magick_unused(x) x
 #endif
 
-#if defined(MAGICKCORE_HAVE___ATTRIBUTE__)
+#if defined(MAGICKCORE_HAVE___ALLOC_SIZE__)
 #  define magick_alloc_size(x)  __attribute__((__alloc_size__(x)))
 #  define magick_alloc_sizes(x,y)  __attribute__((__alloc_size__(x,y)))
 #  define magick_cold  __attribute__((__cold__))
 #  define magick_hot  __attribute__((__hot__))
 #else
 #  define magick_alloc_size(x)  /* nothing */
-#  define magick_alloc_sizes(x)  /* nothing */
+#  define magick_alloc_sizes(x,y)  /* nothing */
 #  define magick_cold
 #  define magick_hot
 #endif
index f73c8fdfef6466368e775598e26030147beb5d44..ab0c3424f1304ee7f49db9017d1102739621bc7a 100644 (file)
@@ -261,14 +261,14 @@ extern int vsnprintf(char *,size_t,const char *,va_list);
 #  define wand_unused(x) x
 #endif
 
-#if defined(MAGICKCORE_HAVE___ATTRIBUTE__)
+#if defined(MAGICKCORE_HAVE___ALLOC_SIZE__)
 #  define wand_alloc_size(x)  __attribute__((__alloc_size__(x)))
 #  define wand_alloc_sizes(x,y)  __attribute__((__alloc_size__(x,y)))
 #  define wand_cold  __attribute__((__cold__))
 #  define wand_hot  __attribute__((__hot__))
 #else
 #  define wand_alloc_size(x)  /* nothing */
-#  define wand_alloc_sizes(x)  /* nothing */
+#  define wand_alloc_sizes(x,y)  /* nothing */
 #  define wand_cold
 #  define wand_hot
 #endif