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

Commit73838b5

Browse files
committed
Unconditionally use the WSA equivalents of Socket error constants.
This change will only apply to mingw compilers, and has been foundnecessary by late versions of the mingw-w64 compiler. It's the same aswhat is done elsewhere for the Microsoft compilers.If this doesn't upset older compilers in the buildfarm, it will bebackpatched to 9.1.Problem reported by Michael Cronenworth, although not his patch.
1 parentb3cc173 commit73838b5

File tree

1 file changed

+10
-20
lines changed

1 file changed

+10
-20
lines changed

‎src/include/port/win32.h

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -272,36 +272,26 @@ typedef int pid_t;
272272
#undef EINTR
273273
#defineEINTR WSAEINTR
274274
#defineEAGAIN WSAEWOULDBLOCK
275-
#ifndefEMSGSIZE
275+
#undef EMSGSIZE
276276
#defineEMSGSIZE WSAEMSGSIZE
277-
#endif
278-
#ifndefEAFNOSUPPORT
277+
#undef EAFNOSUPPORT
279278
#defineEAFNOSUPPORT WSAEAFNOSUPPORT
280-
#endif
281-
#ifndefEWOULDBLOCK
279+
#undef EWOULDBLOCK
282280
#defineEWOULDBLOCK WSAEWOULDBLOCK
283-
#endif
284-
#ifndefECONNRESET
281+
#undef ECONNRESET
285282
#defineECONNRESET WSAECONNRESET
286-
#endif
287-
#ifndefEINPROGRESS
283+
#undef EINPROGRESS
288284
#defineEINPROGRESS WSAEINPROGRESS
289-
#endif
290-
#ifndefENOBUFS
285+
#undef ENOBUFS
291286
#defineENOBUFS WSAENOBUFS
292-
#endif
293-
#ifndefEPROTONOSUPPORT
287+
#undef EPROTONOSUPPORT
294288
#defineEPROTONOSUPPORT WSAEPROTONOSUPPORT
295-
#endif
296-
#ifndefECONNREFUSED
289+
#undef ECONNREFUSED
297290
#defineECONNREFUSED WSAECONNREFUSED
298-
#endif
299-
#ifndefEBADFD
291+
#undef EBADFD
300292
#defineEBADFD WSAENOTSOCK
301-
#endif
302-
#ifndefEOPNOTSUPP
293+
#undef EOPNOTSUPP
303294
#defineEOPNOTSUPP WSAEOPNOTSUPP
304-
#endif
305295

306296
/*
307297
* For Microsoft Visual Studio 2010 and above we intentionally redefine

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp