From 7d2f3e85ecd3b96e79b3eef6aec7f8efb0e7250e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Taylor=20Ienczak=20Zanette?= Date: Fri, 7 Aug 2020 20:08:48 +0100 Subject: [PATCH] evil: Remove OS version check Summary: Current version checking is done with GetVersion, which is now deprecated and issues the warning: ``` 'GetVersion' is deprecated [-Wdeprecated-declarations] ``` The first approach of this commit was to replace GetVersion call with the newer (and more reliable) `IsWindowsVistaOrGreater()` from versionhelpers.h, but nowadays it makes more sense to actually not even make that check, since it is more than unlinkely to happen that someone tries to compile/run EFL in Windows XP. Reviewers: vtorri, stefan_schmidt, raster Reviewed By: vtorri, raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12095 --- src/lib/evil/evil_main.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/lib/evil/evil_main.c b/src/lib/evil/evil_main.c index 6a3678f0a1..803e47fc30 100644 --- a/src/lib/evil/evil_main.c +++ b/src/lib/evil/evil_main.c @@ -23,17 +23,6 @@ evil_init(void) if (++_evil_init_count != 1) return _evil_init_count; - { - DWORD v; - - v = GetVersion(); - if (!v || ((DWORD)(LOBYTE(LOWORD(v))) < 6)) - { - fprintf(stderr, "Windows XP not supported anymore, exiting.\n"); - return 0; - } - } - QueryPerformanceFrequency(&freq); _evil_time_freq = freq.QuadPart;