summaryrefslogtreecommitdiff
path: root/src/port/inet_aton.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-09-27 23:24:45 +0000
committerBruce Momjian <bruce@momjian.us>2004-09-27 23:24:45 +0000
commite1c8b37afb5669542272585245b0706fcad174da (patch)
tree66a2fef74da786dd1f0636f038c639bd6fce94b2 /src/port/inet_aton.c
parente0170510062d49ca79666e944803272b4dd5f711 (diff)
downloadpostgresql-e1c8b37afb5669542272585245b0706fcad174da.tar.gz
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/port/inet_aton.c')
-rw-r--r--src/port/inet_aton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/port/inet_aton.c b/src/port/inet_aton.c
index 9b099cc549..521e61dcf9 100644
--- a/src/port/inet_aton.c
+++ b/src/port/inet_aton.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/port/inet_aton.c,v 1.6 2003/11/29 22:41:31 pgsql Exp $
+/* $PostgreSQL: pgsql/src/port/inet_aton.c,v 1.7 2004/09/27 23:24:45 momjian Exp $
*
* This inet_aton() function was taken from the GNU C library and
* incorporated into Postgres for those systems which do not have this
@@ -44,7 +44,7 @@
#include "c.h"
-#if !defined(_MSC_VER) && !defined(__BORLANDC__)
+#ifndef WIN32_CLIENT_ONLY
#include <netinet/in.h>
#include <ctype.h>
#endif