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 --- misc/winresource.rc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'misc') diff --git a/misc/winresource.rc b/misc/winresource.rc index 6b82e261b..e1e82581b 100644 --- a/misc/winresource.rc +++ b/misc/winresource.rc @@ -1,7 +1,9 @@ #include #include #include +#ifndef USE_CMAKE_CONFIG_H #define USE_CMAKE_CONFIG_H +#endif #include "config.h" #undef USE_CMAKE_CONFIG_H -- cgit v1.2.3