Skip to content

Commit cce28f6

Browse files
committed
Fix macro problem with gai_strerror on Windows.
Commit 5579388 was confused about why gai_strerror() didn't work, and used gai_strerrorA(). It turns out that we had explicitly undefined Windows' own macro for that somewhere else. Get rid of all that, and use the system headers' definition of gai_sterror() directly as intended. Discussion: https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com
1 parent 2cea02f commit cce28f6

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-
#define gai_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
#define ERROR 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy