diff options
author | adrido <robots_only_adrido@gmx.com> | 2017-06-27 11:54:40 +0200 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-27 11:54:40 +0200 |
commit | d7343b6c930d22857f858929ea684acbbeefe482 (patch) | |
tree | a4611d3bc6546af879e8cf433cf49ce8df41ab55 /src/debug.h | |
parent | 48cd217e3b6f53af32802c1897ddd1914d215078 (diff) | |
download | hax-minetest-server-d7343b6c930d22857f858929ea684acbbeefe482.tar.gz hax-minetest-server-d7343b6c930d22857f858929ea684acbbeefe482.zip |
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
Diffstat (limited to 'src/debug.h')
-rw-r--r-- | src/debug.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/debug.h b/src/debug.h index 415797f43..639ba673d 100644 --- a/src/debug.h +++ b/src/debug.h @@ -26,8 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "gettime.h" #include "log.h" -#if (defined(WIN32) || defined(_WIN32_WCE)) - #define WIN32_LEAN_AND_MEAN +#ifdef _WIN32 #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif |