summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>2020-08-07 20:08:48 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-07 20:08:48 +0100
commit7d2f3e85ecd3b96e79b3eef6aec7f8efb0e7250e (patch)
tree23f2e628d2d8b8453bb46fe6fbe053195f1818b0
parent0e91ec6c78b989dd09610902a5ef8a061a8ee240 (diff)
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
-rw-r--r--src/lib/evil/evil_main.c11
1 files changed, 0 insertions, 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)
23 if (++_evil_init_count != 1) 23 if (++_evil_init_count != 1)
24 return _evil_init_count; 24 return _evil_init_count;
25 25
26 {
27 DWORD v;
28
29 v = GetVersion();
30 if (!v || ((DWORD)(LOBYTE(LOWORD(v))) < 6))
31 {
32 fprintf(stderr, "Windows XP not supported anymore, exiting.\n");
33 return 0;
34 }
35 }
36
37 QueryPerformanceFrequency(&freq); 26 QueryPerformanceFrequency(&freq);
38 27
39 _evil_time_freq = freq.QuadPart; 28 _evil_time_freq = freq.QuadPart;