summaryrefslogtreecommitdiff
path: root/src/include/libpq/libpq-be.h
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2017-04-11 15:21:25 +0200
committerMagnus Hagander <magnus@hagander.net>2017-04-11 15:22:21 +0200
commita4777f35565b80ae10605d6d417e5d173156f7da (patch)
tree91b191a40437fd4d98a163bb4ce0f6ad8a3c8aff /src/include/libpq/libpq-be.h
parent6da56f3f84d430671d5edd8f9336bd744c089e31 (diff)
downloadpostgresql-a4777f35565b80ae10605d6d417e5d173156f7da.tar.gz
Remove symbol WIN32_ONLY_COMPILER
This used to mean "Visual C++ except in those parts where Borland C++ was supported where it meant one of those". Now that we don't support Borland C++ anymore, simplify by using _MSC_VER which is the normal way to detect Visual C++.
Diffstat (limited to 'src/include/libpq/libpq-be.h')
-rw-r--r--src/include/libpq/libpq-be.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h
index 2d43815238..0669b924cf 100644
--- a/src/include/libpq/libpq-be.h
+++ b/src/include/libpq/libpq-be.h
@@ -38,14 +38,14 @@
* that doesn't match the msvc build. It gives a bunch of compiler warnings that we ignore,
* but also defines a symbol that simply does not exist. Undefine it again.
*/
-#ifdef WIN32_ONLY_COMPILER
+#ifdef _MSC_VER
#undef HAVE_GETADDRINFO
#endif
#endif /* ENABLE_GSS */
#ifdef ENABLE_SSPI
#define SECURITY_WIN32
-#if defined(WIN32) && !defined(WIN32_ONLY_COMPILER)
+#if defined(WIN32) && !defined(_MSC_VER)
#include <ntsecapi.h>
#endif
#include <security.h>