mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +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:
@ -152,7 +152,7 @@ void *test_thread(void *arg)
|
||||
|
||||
|
||||
/* build up connection name, and connect to database */
|
||||
#ifndef WIN32_ONLY_COMPILER
|
||||
#ifndef _MSC_VER
|
||||
snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
|
||||
#else
|
||||
_snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
|
||||
|
@ -153,7 +153,7 @@ void *test_thread(void *arg)
|
||||
|
||||
|
||||
/* build up connection name, and connect to database */
|
||||
#ifndef WIN32_ONLY_COMPILER
|
||||
#ifndef _MSC_VER
|
||||
snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
|
||||
#else
|
||||
_snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
|
||||
|
@ -103,7 +103,7 @@ void *test_thread(void *arg)
|
||||
EXEC SQL END DECLARE SECTION;
|
||||
|
||||
/* build up connection name, and connect to database */
|
||||
#ifndef WIN32_ONLY_COMPILER
|
||||
#ifndef _MSC_VER
|
||||
snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
|
||||
#else
|
||||
_snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
|
||||
|
@ -104,7 +104,7 @@ void *test_thread(void *arg)
|
||||
EXEC SQL END DECLARE SECTION;
|
||||
|
||||
/* build up connection name, and connect to database */
|
||||
#ifndef WIN32_ONLY_COMPILER
|
||||
#ifndef _MSC_VER
|
||||
snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
|
||||
#else
|
||||
_snprintf(l_connection, sizeof(l_connection), "thread_%03ld", threadnum);
|
||||
|
@ -49,7 +49,7 @@
|
||||
* GSSAPI authentication system.
|
||||
*/
|
||||
|
||||
#if defined(WIN32) && !defined(WIN32_ONLY_COMPILER)
|
||||
#if defined(WIN32) && !defined(_MSC_VER)
|
||||
/*
|
||||
* MIT Kerberos GSSAPI DLL doesn't properly export the symbols for MingW
|
||||
* that contain the OIDs required. Redefine here, values copied
|
||||
|
@ -37,7 +37,7 @@
|
||||
#endif
|
||||
#define near
|
||||
#include <shlobj.h>
|
||||
#ifdef WIN32_ONLY_COMPILER /* mstcpip.h is missing on mingw */
|
||||
#ifdef _MSC_VER /* mstcpip.h is missing on mingw */
|
||||
#include <mstcpip.h>
|
||||
#endif
|
||||
#else
|
||||
|
@ -53,7 +53,7 @@
|
||||
|
||||
#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