evil: Remove OS version check accepted/tizen/unified/20200810.123126 submit/tizen/20200809.214919
authorJoão Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Fri, 7 Aug 2020 19:08:48 +0000 (20:08 +0100)
committerJongmin Lee <jm105.lee@samsung.com>
Sun, 9 Aug 2020 21:33:50 +0000 (06:33 +0900)
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

index 6a3678f0a11b66ed6c484d837e74bbde6bd17693..803e47fc3024c74f3c519b9a4d78091cafb311c4 100644 (file)
@@ -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;