From a84ea1ccee9fb5753bf96a0f35f54d33874712b6 Mon Sep 17 00:00:00 2001 From: tsauerbeck Date: Wed, 20 Oct 2004 16:36:12 +0000 Subject: [PATCH] mingw portability SVN revision: 11924 --- legacy/evas/src/lib/engines/common/evas_cpu.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/legacy/evas/src/lib/engines/common/evas_cpu.c b/legacy/evas/src/lib/engines/common/evas_cpu.c index 2ae495b405..3b9a5ef562 100644 --- a/legacy/evas/src/lib/engines/common/evas_cpu.c +++ b/legacy/evas/src/lib/engines/common/evas_cpu.c @@ -6,9 +6,13 @@ #include +#ifndef WIN32 static sigjmp_buf detect_buf; +#endif + static int cpu_feature_mask = 0; +#ifndef WIN32 static void evas_common_cpu_catch_ill(int sig); static void @@ -16,6 +20,7 @@ evas_common_cpu_catch_ill(int sig) { siglongjmp(detect_buf, 1); } +#endif #if ( \ defined __i386__ || \ @@ -76,6 +81,7 @@ evas_common_cpu_vis_test(void) int evas_common_cpu_feature_test(void (*feature)(void)) { +#ifndef WIN32 int enabled = 1; struct sigaction act, oact; @@ -91,6 +97,9 @@ evas_common_cpu_feature_test(void (*feature)(void)) feature(); sigaction(SIGILL, &oact, NULL); return enabled; +#else + return 0; +#endif } void