From: dirk Date: Sun, 18 Sep 2016 17:30:15 +0000 (+0200) Subject: Fixed attribute defines. X-Git-Tag: 7.0.3-1~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74673b243d3eca42aafeb402a77a09e31c78c9d2;p=imagemagick Fixed attribute defines. --- diff --git a/MagickWand/method-attribute.h b/MagickWand/method-attribute.h index 6ccdcb98d..fc6fca3ba 100644 --- a/MagickWand/method-attribute.h +++ b/MagickWand/method-attribute.h @@ -103,14 +103,16 @@ extern "C" { # define wand_aligned(x) __attribute__((aligned(x))) # define wand_attribute __attribute__ # define wand_unused(x) wand_unused_ ## x __attribute__((unused)) -#elif defined( __VMS ) -# define wand_aligned(x) /* nothing */ +#elif defined(MAGICKWAND_WINDOWS_SUPPORT) && !defined(__CYGWIN__) +# define wand_aligned(x) __declspec(align(x)) # define wand_attribute(x) /* nothing */ # define wand_unused(x) x +# define wand_unreferenced(x) (x) #else -# define wand_aligned(x) __declspec(align(x)) +# define wand_aligned(x) /* nothing */ # define wand_attribute(x) /* nothing */ # define wand_unused(x) x +# define wand_unreferenced(x) /* nothing */ #endif #if !defined(__clang__) && (((__GNUC__) > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))