diff --git a/MagickCore/method-attribute.h b/MagickCore/method-attribute.h index 7f5d58e4ee..222a18f2c7 100644 --- a/MagickCore/method-attribute.h +++ b/MagickCore/method-attribute.h @@ -123,13 +123,7 @@ extern "C" { # define magick_unreferenced(x) /* nothing */ #endif -#if defined(__apple_build_version__) -# define magick_alloc_size(x) -# define magick_alloc_sizes(x,y) -# define magick_cold_spot -# define magick_hot_spot -#else -#if defined(__clang__) || (((__GNUC__) > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))) +#if (defined(__clang__) || (((__GNUC__) > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))) && !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 __attribute__((__cold__)) @@ -140,7 +134,6 @@ extern "C" { # define magick_cold_spot # define magick_hot_spot #endif -#endif #if defined(__cplusplus) || defined(c_plusplus) }