mstcpip.h is not missing on MinGW.
authorThomas Munro <[email protected]>
Thu, 18 Aug 2022 04:21:24 +0000 (16:21 +1200)
committerThomas Munro <[email protected]>
Thu, 18 Aug 2022 04:31:11 +0000 (16:31 +1200)
Remove a small difference between MinGW and MSVC builds which isn't
needed for modern MinGW, noticed in passing.

Discussion: https://postgr.es/m/CA+hUKGKErNfhmvb_H0UprEmp4LPzGN06yR2_0tYikjzB-2ECMw@mail.gmail.com

src/backend/libpq/pqcomm.c
src/interfaces/libpq/fe-connect.c

index 5dd92c9f668fc6354f9c9ef3402742244d93ae00..8ff3be611deab7c5355ad2542527e61cb6a2e7ef 100644 (file)
@@ -69,7 +69,7 @@
 #include <netinet/in.h>
 #include <netinet/tcp.h>
 #include <utime.h>
-#ifdef _MSC_VER                    /* mstcpip.h is missing on mingw */
+#ifdef WIN32
 #include <mstcpip.h>
 #endif
 
index ec6c17cd0bf7cc194d7b004f64dad8be9b68dfc6..8cefef20d1e5059a33db3a5b15e15f8f333d08e1 100644 (file)
@@ -44,9 +44,7 @@
 #endif
 #define near
 #include <shlobj.h>
-#ifdef _MSC_VER                    /* mstcpip.h is missing on mingw */
 #include <mstcpip.h>
-#endif
 #else
 #include <sys/socket.h>
 #include <netdb.h>