1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-03 09:13:20 +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:
Magnus Hagander
2017-04-11 15:21:25 +02:00
parent 6da56f3f84
commit a4777f3556
19 changed files with 25 additions and 29 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);