]> git.lizzy.rs Git - minetest.git/commit
Fix msvc annoyances (#5963)
authoradrido <robots_only_adrido@gmx.com>
Tue, 27 Jun 2017 09:54:40 +0000 (11:54 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Tue, 27 Jun 2017 09:54:40 +0000 (11:54 +0200)
commitd7343b6c930d22857f858929ea684acbbeefe482
treea4611d3bc6546af879e8cf433cf49ce8df41ab55
parent48cd217e3b6f53af32802c1897ddd1914d215078
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
src/CMakeLists.txt
src/database-postgresql.cpp
src/debug.h
src/mesh_generator_thread.cpp
src/mesh_generator_thread.h
src/noise.cpp
src/socket.cpp
src/socket.h
src/threading/thread.cpp