]> granicus.if.org Git - graphviz/commitdiff
remove 'WIN32_LEAN_AND_MEAN' manipulation
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 02:39:53 +0000 (19:39 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 30 Mar 2022 02:19:56 +0000 (19:19 -0700)
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

cmd/smyrna/main.c
tclpkg/tkspline/dllEntry.c
windows/gvedit/USettings.cpp

index 7f531fe82d2ead54f53a9c5c04fa35d31cedb7b0..e312528c67b691f738c3210125ae40649c08f066 100644 (file)
@@ -13,7 +13,6 @@
 #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
index 493f9a5b44f26a3e853469622d7685fbe948ab21..f73ac3bb81854f8d8e0161fb2a65d1f73735c59d 100644 (file)
@@ -12,9 +12,7 @@
  *     dllEntry.c
  */
 
-#define WIN32_LEAN_AND_MEAN
 #include <windows.h>
-#undef WIN32_LEAN_AND_MEAN
 
 /*
  * The following declarations are for the Borland and VC++
index d6b084f77a7aff8fe7594dc2b0dcdcbfbd092eb0..ef43c10169956562522ba7eadea31663f980983d 100644 (file)
@@ -2,7 +2,6 @@
 
 #include <shlobj.h>
 
-#define NO_WIN32_LEAN_AND_MEAN 1
 #include <vcl.h>
 #pragma hdrstop