raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7d2f3e85ecd3b96e79b3eef6aec7f8efb0e7250e

commit 7d2f3e85ecd3b96e79b3eef6aec7f8efb0e7250e
Author: João Paulo Taylor Ienczak Zanette <[email protected]>
Date:   Fri Aug 7 20:08:48 2020 +0100

    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;

-- 


Reply via email to