commonalize NTDDI_VERSION and _WIN32_WINNT

This commit is contained in:
Tim Felgentreff 2020-11-30 09:40:46 +01:00
parent d4b1a6c58c
commit 7c067d8161
4 changed files with 6 additions and 9 deletions

View file

@ -51,7 +51,7 @@ void copy_dir(const char* source_folder, const char* target_folder);
#ifdef WIN32
// set everything to winxp sp2 compatiblity
#define NTDDI_VERSION 0x05010300
#define NTDDI_VERSION 0x05010200
#define _WIN32_WINNT 0x0502
#define WINVER 0x0502

View file

@ -374,7 +374,7 @@ misrepresented as being the original software.
#ifdef _WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#define _WIN32_WINNT 0x0502
#endif
#ifndef TINYFD_WIN_CONSOLE_ONLY
#include <Windows.h>

View file

@ -33,9 +33,10 @@
//@{
#ifdef USE_WIN32
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif
// set everything to winxp sp2 compatiblity
#define NTDDI_VERSION 0x05010200
#define _WIN32_WINNT 0x0502
#define WINVER 0x0502
#endif
#include <cstdlib>

View file

@ -36,10 +36,6 @@
#include <stdlib.h>
#ifdef USE_WIN32
// set everything to winxp sp2 compatiblity
#define NTDDI_VERSION 0x05010300
#define _WIN32_WINNT 0x0502
#define WINVER 0x0502
#include <Shlobj.h>
#endif