From 74673b243d3eca42aafeb402a77a09e31c78c9d2 Mon Sep 17 00:00:00 2001 From: dirk Date: Sun, 18 Sep 2016 19:30:15 +0200 Subject: [PATCH] Fixed attribute defines. --- MagickWand/method-attribute.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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))) -- 2.50.1