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

Commite912963

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.Backpatch of commit73838b5.Problem reported by Michael Cronenworth, although not his patch.
1 parent005f583 commite912963

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
@@ -270,36 +270,26 @@ typedef int pid_t;
270270
#undef EINTR
271271
#defineEINTR WSAEINTR
272272
#defineEAGAIN WSAEWOULDBLOCK
273-
#ifndefEMSGSIZE
273+
#undef EMSGSIZE
274274
#defineEMSGSIZE WSAEMSGSIZE
275-
#endif
276-
#ifndefEAFNOSUPPORT
275+
#undef EAFNOSUPPORT
277276
#defineEAFNOSUPPORT WSAEAFNOSUPPORT
278-
#endif
279-
#ifndefEWOULDBLOCK
277+
#undef EWOULDBLOCK
280278
#defineEWOULDBLOCK WSAEWOULDBLOCK
281-
#endif
282-
#ifndefECONNRESET
279+
#undef ECONNRESET
283280
#defineECONNRESET WSAECONNRESET
284-
#endif
285-
#ifndefEINPROGRESS
281+
#undef EINPROGRESS
286282
#defineEINPROGRESS WSAEINPROGRESS
287-
#endif
288-
#ifndefENOBUFS
283+
#undef ENOBUFS
289284
#defineENOBUFS WSAENOBUFS
290-
#endif
291-
#ifndefEPROTONOSUPPORT
285+
#undef EPROTONOSUPPORT
292286
#defineEPROTONOSUPPORT WSAEPROTONOSUPPORT
293-
#endif
294-
#ifndefECONNREFUSED
287+
#undef ECONNREFUSED
295288
#defineECONNREFUSED WSAECONNREFUSED
296-
#endif
297-
#ifndefEBADFD
289+
#undef EBADFD
298290
#defineEBADFD WSAENOTSOCK
299-
#endif
300-
#ifndefEOPNOTSUPP
291+
#undef EOPNOTSUPP
301292
#defineEOPNOTSUPP WSAEOPNOTSUPP
302-
#endif
303293

304294
/*
305295
* For Microsoft Visual Studio 2010 and above we intentionally redefine

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp