pgsql: windows: Define WIN32_LEAN_AND_MEAN to make compilation faster.

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: windows: Define WIN32_LEAN_AND_MEAN to make compilation faster.
Date: 2021-10-04 20:16:51
Message-ID: E1mXUOJ-0007BC-Sb@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8162464a25e5314e753c580389f76a9b7f69445b

Modified Files
--------------
src/include/port/win32_port.h | 8 ++++++++
1 file changed, 8 insertions(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2021-10-04 20:49:09 pgsql: Fix TestLib::slurp_file() with offset on windows.
Previous Message Daniel Gustafsson 2021-10-04 19:11:10 pgsql: Fix check for trapping exit() calls in libpq