From 32315c92a4e31c0b75fb88548c0bf40242f0e5f1 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 18 Feb 2022 10:45:29 -0500 Subject: [PATCH] fix compiler exception under Cygwin --- magick/nt-feature.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/magick/nt-feature.c b/magick/nt-feature.c index 2c8e47aec1..51a6671f2f 100644 --- a/magick/nt-feature.c +++ b/magick/nt-feature.c @@ -42,9 +42,6 @@ */ #include "magick/studio.h" #if defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) -#define WIN32_LEAN_AND_MEAN -#define VC_EXTRALEAN -#include #include "magick/cache.h" #include "magick/colorspace.h" #include "magick/colorspace-private.h" @@ -58,12 +55,18 @@ #include "magick/monitor-private.h" #include "magick/nt-base.h" #include "magick/nt-base-private.h" +#include "magick/nt-feature.h" #include "magick/pixel-accessor.h" #include "magick/quantum.h" #include "magick/string_.h" #include "magick/token.h" #include "magick/splay-tree.h" #include "magick/utility.h" +#if defined(__CYGWIN__) +#define WIN32_LEAN_AND_MEAN +#define VC_EXTRALEAN +#include +#endif /* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%