Add WindowsMinVer config for minimum target Windows version switch
This commit is contained in:
@@ -9,20 +9,13 @@
|
||||
#define WINVER 0x0601
|
||||
#endif
|
||||
#ifndef _WIN32_WINNT
|
||||
#define _WIN32_WINNT 0x0601
|
||||
#define _WIN32_WINNT WINVER
|
||||
#endif
|
||||
#ifndef _WIN32_WINDOWS
|
||||
#define _WIN32_WINDOWS 0x0601
|
||||
#define _WIN32_WINDOWS WINVER
|
||||
#endif
|
||||
|
||||
// Override Win API for UWP
|
||||
#if PLATFORM_UWP
|
||||
#define WINVER 0x0A00
|
||||
#define _WIN32_WINNT 0x0A00
|
||||
#define _WIN32_WINDOWS 0x0A00
|
||||
#endif
|
||||
|
||||
// Override for Xbox Scarlett
|
||||
// Override for Xbox
|
||||
#if PLATFORM_XBOX_SCARLETT || PLATFORM_XBOX_ONE
|
||||
#define NOBITMAP
|
||||
#define NOMCX
|
||||
|
||||
@@ -11,6 +11,15 @@
|
||||
#if USE_EDITOR
|
||||
#include "Editor/Editor.h"
|
||||
#endif
|
||||
#include <sdkddkver.h>
|
||||
#if WINVER >= _WIN32_WINNT_WINBLUE && WINVER < _WIN32_WINNT_WIN10
|
||||
// Fix compilation for Windows 8.1 on the latest Windows SDK
|
||||
typedef enum _MFVideoSphericalFormat { } MFVideoSphericalFormat;
|
||||
#endif
|
||||
#ifndef MF_SOURCE_READER_CURRENT_TYPE_INDEX
|
||||
// Fix compilation for Windows 7 on the latest Windows SDK
|
||||
#define MF_SOURCE_READER_CURRENT_TYPE_INDEX 0xFFFFFFFF
|
||||
#endif
|
||||
#include <mfapi.h>
|
||||
#include <mfidl.h>
|
||||
#include <mfreadwrite.h>
|
||||
|
||||
Reference in New Issue
Block a user