Code_Cleanup_Day/Windows: Clean-up windows API Level.
Not sure when this happened but apparently the lower bar is now windows 7 [1] This patch bumps to API version to 0x0601 (Win7) and cleans up any uses that worked around the globally set API version. [1] https://www.blender.org/download/requirements/ Reviewed By: brecht Differential Revision: https://developer.blender.org/D6758
This commit is contained in:
parent
dc1db0791e
commit
02226ef653
|
@ -131,8 +131,8 @@ add_definitions(
|
|||
# MSVC11 needs _ALLOW_KEYWORD_MACROS to build
|
||||
add_definitions(-D_ALLOW_KEYWORD_MACROS)
|
||||
|
||||
# We want to support Vista level ABI
|
||||
add_definitions(-D_WIN32_WINNT=0x600)
|
||||
# We want to support Windows 7 level ABI
|
||||
add_definitions(-D_WIN32_WINNT=0x601)
|
||||
include(build_files/cmake/platform/platform_win32_bundle_crt.cmake)
|
||||
remove_cc_flag("/MDd" "/MD")
|
||||
|
||||
|
|
|
@ -31,9 +31,6 @@
|
|||
# include "util/util_debug.h"
|
||||
# include "util/util_logging.h"
|
||||
|
||||
# undef _WIN32_WINNT // Need minimum API support for Windows 7
|
||||
# define _WIN32_WINNT _WIN32_WINNT_WIN7
|
||||
|
||||
# ifdef WITH_CUDA_DYNLOAD
|
||||
# include <cuew.h>
|
||||
// Do not use CUDA SDK headers when using CUEW
|
||||
|
|
|
@ -34,9 +34,6 @@ struct DynamicLibrary {
|
|||
};
|
||||
|
||||
#ifdef WIN32
|
||||
# ifndef _WIN32_WINNT
|
||||
# define _WIN32_WINNT 0x501 /* Windows XP or newer */
|
||||
# endif
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# include <windows.h>
|
||||
# include "utf_winfunc.h"
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
#include "PIL_time.h"
|
||||
|
||||
#ifdef WIN32
|
||||
# ifndef _WIN32_WINNT
|
||||
# define _WIN32_WINNT 0x501 /* Windows XP or newer */
|
||||
# endif
|
||||
# define WIN32_LEAN_AND_MEAN
|
||||
# include <windows.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue