This macro is a legacy toggle to suppress parts of the Windows API surface in
order to accelerate compilation. In a parallel compilation of a code base the
size of Graphviz, it has a negligible effect. As always, Raymond Chen gives the
back story.¹ This commit removes these tricks to ease future maintenance.
¹ https://devblogs.microsoft.com/oldnewthing/
20091130-00/?p=15863
#include "builddate.h"
//windows.h for win machines
#if defined(_WIN32) && !defined(__CYGWIN__)
-#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#include <windowsx.h>
#endif
* dllEntry.c
*/
-#define WIN32_LEAN_AND_MEAN
#include <windows.h>
-#undef WIN32_LEAN_AND_MEAN
/*
* The following declarations are for the Borland and VC++
#include <shlobj.h>
-#define NO_WIN32_LEAN_AND_MEAN 1
#include <vcl.h>
#pragma hdrstop