aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/core/SkPreConfig.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/core/SkPreConfig.h b/include/core/SkPreConfig.h
index 6a9b16070a..1c2e24fba6 100644
--- a/include/core/SkPreConfig.h
+++ b/include/core/SkPreConfig.h
@@ -127,10 +127,12 @@
// Are we in VisualStudio?
#ifndef SK_CPU_SSE_LEVEL
- #if _M_IX86_FP == 1
- #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE1
- #elif _M_IX86_FP >= 2
- #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2
+ #if defined (_M_IX86_FP)
+ #if _M_IX86_FP == 1
+ #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE1
+ #elif _M_IX86_FP >= 2
+ #define SK_CPU_SSE_LEVEL SK_CPU_SSE_LEVEL_SSE2
+ #endif
#endif
#endif