mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-05 19:09:58 +08:00
windows: Define WIN32_LEAN_AND_MEAN to make compilation faster.
windows.h includes a lot of other headers, slowing down compilation significantly. WIN32_LEAN_AND_MEAN reduces that a bit. It'd be better to remove the include of windows.h (as well as indirect inclusions of it) from such a central place, but until then... Discussion: https://postgr.es/m/20210921193035.pqzay43vpyv7in43@alap3.anarazel.de
This commit is contained in:
parent
de744e9efb
commit
8162464a25
@ -43,6 +43,14 @@
|
||||
#define _WINSOCKAPI_
|
||||
#endif
|
||||
|
||||
/*
|
||||
* windows.h includes a lot of other headers, slowing down compilation
|
||||
* significantly. WIN32_LEAN_AND_MEAN reduces that a bit. It'd be better to
|
||||
* remove the include of windows.h (as well as indirect inclusions of it) from
|
||||
* such a central place, but until then...
|
||||
*/
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <windows.h>
|
||||
|
Loading…
Reference in New Issue
Block a user