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

Commitcce28f6

Browse files
committed
Fix macro problem with gai_strerror on Windows.
Commit5579388 was confused about why gai_strerror() didn't work, andused gai_strerrorA(). It turns out that we had explicitly undefinedWindows' own macro for that somewhere else. Get rid of all that, anduse the system headers' definition of gai_sterror() directly asintended.Discussion:https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com
1 parent2cea02f commitcce28f6

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

‎src/include/port/win32/netdb.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
#include<ws2tcpip.h>
66

7-
#definegai_strerror gai_strerrorA
8-
97
#endif

‎src/include/port/win32/sys/socket.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,4 @@
2323
#defineERROR PGERROR
2424
#endif
2525

26-
/*
27-
* we can't use the windows gai_strerror{AW} functions because
28-
* they are defined inline in the MS header files. So we'll use our
29-
* own
30-
*/
31-
#undef gai_strerror
32-
3326
#endif/* WIN32_SYS_SOCKET_H */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp