windows: Define WIN32_LEAN_AND_MEAN to make compilation faster.
authorAndres Freund <andres@anarazel.de>
Fri, 1 Oct 2021 16:50:45 +0000 (09:50 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 4 Oct 2021 20:16:12 +0000 (13:16 -0700)
commit8162464a25e5314e753c580389f76a9b7f69445b
treeaa4fed640ae7ba6c98fa1f083292fc37860ecf67
parentde744e9efbc55288572d1e81168c74ea85a4b90a
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
src/include/port/win32_port.h