mirror of
https://github.com/postgres/postgres.git
synced 2025-11-01 21:31:19 +03:00
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++.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user