Skip to content

Include winsock2 before windows header#1330

Merged
saghul merged 1 commit intomasterfrom
winsock-before-windows
Feb 5, 2026
Merged

Include winsock2 before windows header#1330
saghul merged 1 commit intomasterfrom
winsock-before-windows

Conversation

@saghul
Copy link
Copy Markdown
Contributor

@saghul saghul commented Feb 3, 2026

We don't import the former on MinGW, which can lead to this warning:

D:/a/_temp/msys64/mingw64/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
   15 | #warning Please include winsock2.h before windows.h
      |  ^~~~~~~
We don't import the former on MinGW, which can lead to this warning:

~~~
D:/a/_temp/msys64/mingw64/include/winsock2.h:15:2: warning: #warning Please include winsock2.h before windows.h [-Wcpp]
   15 | #warning Please include winsock2.h before windows.h
      |  ^~~~~~~
~~~
@saghul saghul merged commit 2c307d2 into master Feb 5, 2026
122 checks passed
@saghul saghul deleted the winsock-before-windows branch February 5, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants