summaryrefslogtreecommitdiff
path: root/src/lib/evil/evil_main.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2017-10-01 17:07:02 +0100
committerAndy Williams <andy@andywilliams.me>2017-10-01 18:09:46 +0100
commit10ba064b65e02befec19cfb89657ebf86a0a95f1 (patch)
tree6bda091cc7cdaedd18f8a2c59505eff1e7bc5d4e /src/lib/evil/evil_main.c
parent3462390b5cda12ca0b37cf00a2a20a5d3636d4b5 (diff)
Windows: remove XP support and forbid compilation and run on this platform
Test Plan: run on XP Reviewers: jpeg, cedric, ajwillia.ms Reviewed By: ajwillia.ms Subscribers: ajwillia.ms Differential Revision: https://phab.enlightenment.org/D5245
Diffstat (limited to 'src/lib/evil/evil_main.c')
-rw-r--r--src/lib/evil/evil_main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/evil/evil_main.c b/src/lib/evil/evil_main.c
index 2b7ae51..8ddd85f 100644
--- a/src/lib/evil/evil_main.c
+++ b/src/lib/evil/evil_main.c
@@ -35,6 +35,17 @@ evil_init(void)
35 if (++_evil_init_count != 1) 35 if (++_evil_init_count != 1)
36 return _evil_init_count; 36 return _evil_init_count;
37 37
38 {
39 DWORD v;
40
41 v = GetVersion();
42 if (!v || ((DWORD)(LOBYTE(LOWORD(v))) < 6))
43 {
44 fprintf(stderr, "Windows XP not supported anymore, exiting.\n");
45 return 0;
46 }
47 }
48
38 if (!QueryPerformanceFrequency(&freq)) 49 if (!QueryPerformanceFrequency(&freq))
39 return 0; 50 return 0;
40 51