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:
Ray molenkamp 2020-02-05 20:03:06 -07:00
parent dc1db0791e
commit 02226ef653
4 changed files with 2 additions and 11 deletions

View File

@ -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")

View File

@ -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

View File

@ -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"

View File

@ -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>