diff --git a/src/frontend/plotting/grid.c b/src/frontend/plotting/grid.c index 3ae2942e0..f76c55280 100644 --- a/src/frontend/plotting/grid.c +++ b/src/frontend/plotting/grid.c @@ -17,9 +17,12 @@ Modified: 2001 AlansFixes #include -#ifdef HAS_WINGUI +#if defined(_MSC_VER) || defined(__MINGW32__) #undef BOOLEAN #include +#endif + +#ifdef HAS_WINGUI typedef struct { /* Extra window data */ HWND wnd; /* window */ HDC hDC; /* Device context of window */