Skip to content

Commit

Permalink
fix compiler exception under Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 18, 2022
1 parent 695af8d commit 32315c9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions magick/nt-feature.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
*/
#include "magick/studio.h"
#if defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__)
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#include <windows.h>
#include "magick/cache.h"
#include "magick/colorspace.h"
#include "magick/colorspace-private.h"
Expand All @@ -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 <windows.h>
#endif

/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down

0 comments on commit 32315c9

Please sign in to comment.