]> granicus.if.org Git - imagemagick/commitdiff
Fixed attribute defines.
authordirk <dirk@git.imagemagick.org>
Sun, 18 Sep 2016 17:30:15 +0000 (19:30 +0200)
committerdirk <dirk@git.imagemagick.org>
Sun, 18 Sep 2016 17:30:15 +0000 (19:30 +0200)
MagickWand/method-attribute.h

index 6ccdcb98df3ebe89a76d0fc547cc58d7a4c1e909..fc6fca3ba1f73acd834559200e9623c0d3609f83 100644 (file)
@@ -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)))