]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 5 Mar 2014 00:51:48 +0000 (00:51 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 5 Mar 2014 00:51:48 +0000 (00:51 +0000)
MagickCore/method-attribute.h
MagickWand/method-attribute.h

index 80f99f676321f5b689ef47c5cfb553b1ccbfd913..a0b0e77406f95193d989fd4a1cdb56bcaf8891f0 100644 (file)
@@ -123,6 +123,12 @@ extern "C" {
 #  define magick_unreferenced(x)  /* nothing */
 #endif
 
+#if defined(__apple_build_version__)
+#  define magick_alloc_size(x)  __attribute__((__alloc_size__(x)))
+#  define magick_alloc_sizes(x,y)  __attribute__((__alloc_size__(x,y)))
+#  define magick_cold_spot
+#  define magick_hot_spot
+#else
 #if defined(__clang__) || (((__GNUC__) > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
 #  define magick_alloc_size(x)  __attribute__((__alloc_size__(x)))
 #  define magick_alloc_sizes(x,y)  __attribute__((__alloc_size__(x,y)))
@@ -134,6 +140,7 @@ extern "C" {
 #  define magick_cold_spot
 #  define magick_hot_spot
 #endif
+#endif
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }
index 4c86f131bcee2a3b5362ef8d433586574fd171a6..9ee27aaef6442b4f20c83ea1c824860e8fb73f3e 100644 (file)
@@ -109,6 +109,12 @@ extern "C" {
 #  define wand_unused(x) x
 #endif
 
+#if defined(__apple_build_version__)
+#  define magick_alloc_size(x)  __attribute__((__alloc_size__(x)))
+#  define magick_alloc_sizes(x,y)  __attribute__((__alloc_size__(x,y)))
+#  define magick_cold_spot
+#  define magick_hot_spot
+#else
 #if defined(__clang__) || (((__GNUC__) > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
 #  define wand_alloc_size(x)  __attribute__((__alloc_size__(x)))
 #  define wand_alloc_sizes(x,y)  __attribute__((__alloc_size__(x,y)))
@@ -120,6 +126,7 @@ extern "C" {
 #  define wand_cold_spot
 #  define wand_hot_spot
 #endif
+#endif
 
 #if defined(__cplusplus) || defined(c_plusplus)
 }