summaryrefslogtreecommitdiff
path: root/src/mir_core
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-28 20:38:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-28 20:38:45 +0300
commit0eee94c3a780e0e9f87b26145b557a99e84d25e0 (patch)
tree58287520f0c2284550764d5f66bbf0b7e5ded155 /src/mir_core
parent96171674a3c346419d490705d4e3b4e53d2f8ae4 (diff)
21 years after Win2k release we don't need win2k.h - everything we need is included into minimum Windows SDK 7.1
Diffstat (limited to 'src/mir_core')
-rw-r--r--src/mir_core/src/stdafx.h2
-rw-r--r--src/mir_core/src/winver.cpp12
2 files changed, 12 insertions, 2 deletions
diff --git a/src/mir_core/src/stdafx.h b/src/mir_core/src/stdafx.h
index 7f2cf387cc..4934c8b1d9 100644
--- a/src/mir_core/src/stdafx.h
+++ b/src/mir_core/src/stdafx.h
@@ -50,8 +50,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <direct.h>
#define __NO_CMPLUGIN_NEEDED
-#include <win2k.h>
-
#include <m_system.h>
#include <m_database.h>
#include <m_db_int.h>
diff --git a/src/mir_core/src/winver.cpp b/src/mir_core/src/winver.cpp
index b2f3ca3a1f..28ced22337 100644
--- a/src/mir_core/src/winver.cpp
+++ b/src/mir_core/src/winver.cpp
@@ -17,6 +17,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stdafx.h"
+#ifndef _WIN32_WINNT_WIN8
+#define _WIN32_WINNT_WIN8 0x0602 // Windows 8
+#endif
+
+#ifndef _WIN32_WINNT_WINBLUE
+#define _WIN32_WINNT_WINBLUE 0x0603 // Windows 8.1
+#endif
+
+#ifndef _WIN32_WINNT_WIN10
+#define _WIN32_WINNT_WIN10 0x0A00 // Windows 10
+#endif
+
static int dwWinVer;
void InitWinver()