Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8162464

Browse files
committed
windows: Define WIN32_LEAN_AND_MEAN to make compilation faster.
windows.h includes a lot of other headers, slowing down compilationsignificantly. WIN32_LEAN_AND_MEAN reduces that a bit. It'd be better toremove the include of windows.h (as well as indirect inclusions of it) from sucha central place, but until then...Discussion:https://postgr.es/m/20210921193035.pqzay43vpyv7in43@alap3.anarazel.de
1 parentde744e9 commit8162464

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎src/include/port/win32_port.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@
4343
#define_WINSOCKAPI_
4444
#endif
4545

46+
/*
47+
* windows.h includes a lot of other headers, slowing down compilation
48+
* significantly. WIN32_LEAN_AND_MEAN reduces that a bit. It'd be better to
49+
* remove the include of windows.h (as well as indirect inclusions of it) from
50+
* such a central place, but until then...
51+
*/
52+
#defineWIN32_LEAN_AND_MEAN
53+
4654
#include<winsock2.h>
4755
#include<ws2tcpip.h>
4856
#include<windows.h>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp