From d7343b6c930d22857f858929ea684acbbeefe482 Mon Sep 17 00:00:00 2001 From: adrido Date: Tue, 27 Jun 2017 11:54:40 +0200 Subject: Fix msvc annoyances (#5963) * MSVC: Fix '/std:c++11' is not a valid compiler option * MSVC/MINGW: Define 'WIN32_LEAN_AND_MEAN' for the whole project In some obscure cases 'Windows.h" got includet before that definition, which leaded to compilation warnings+errors * MSVC: '/arch:SSE' is only available for x86 * MSVC: Fix float conversation * MSVC/MINGW: use winthreads on Windows * MSVC: 'USE_CMAKE_CONFIG' might be already definied by CMake build system * MSVC: Use all available cpu cores for compiling * Add missing include ctime and use std::time_t --- src/database-postgresql.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/database-postgresql.cpp') diff --git a/src/database-postgresql.cpp b/src/database-postgresql.cpp index 3c54f48d1..78f59419f 100644 --- a/src/database-postgresql.cpp +++ b/src/database-postgresql.cpp @@ -23,9 +23,6 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "database-postgresql.h" #ifdef _WIN32 - #ifndef WIN32_LEAN_AND_MEAN - #define WIN32_LEAN_AND_MEAN - #endif // Without this some of the network functions are not found on mingw #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 -- cgit v1.2.3