summaryrefslogtreecommitdiff
path: root/src/include/getaddrinfo.h
diff options
context:
space:
mode:
authorBruce Momjian2004-09-27 23:24:45 +0000
committerBruce Momjian2004-09-27 23:24:45 +0000
commite1c8b37afb5669542272585245b0706fcad174da (patch)
tree66a2fef74da786dd1f0636f038c639bd6fce94b2 /src/include/getaddrinfo.h
parente0170510062d49ca79666e944803272b4dd5f711 (diff)
Add new macro as shorthand for MS VC and Borland C++:
+ #if defined(_MSC_VER) || defined(__BORLANDC__) + #define WIN32_CLIENT_ONLY + #endif
Diffstat (limited to 'src/include/getaddrinfo.h')
-rw-r--r--src/include/getaddrinfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/getaddrinfo.h b/src/include/getaddrinfo.h
index 893e7106c7..f4bc4410ce 100644
--- a/src/include/getaddrinfo.h
+++ b/src/include/getaddrinfo.h
@@ -15,14 +15,14 @@
*
* Copyright (c) 2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/getaddrinfo.h,v 1.12 2003/11/29 22:40:53 pgsql Exp $
+ * $PostgreSQL: pgsql/src/include/getaddrinfo.h,v 1.13 2004/09/27 23:24:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef GETADDRINFO_H
#define GETADDRINFO_H
-#if !defined(_MSC_VER) && !defined(__BORLANDC__)
+#ifndef WIN32_CLIENT_ONLY
#include <sys/socket.h>
#include <netdb.h>
#endif