diff options
author | 2014-02-06 16:26:08 +0000 | |
---|---|---|
committer | 2014-02-06 16:26:08 +0000 | |
commit | 4736ed1a0a7e252e169685e3c7572f08dfca0a2c (patch) | |
tree | d6c7058b240895d826d6f9fb6e72bd03b1699a47 /include/core/SkPreConfig.h | |
parent | 89335631749b29ea92e55ed710f030692aa13297 (diff) |
Add ifdef to avoid "not defined" compiler warnings for VS checks
BUG=skia:2130
R=reed@google.com
Author: hcm@google.com
Review URL: https://codereview.chromium.org/153093004
git-svn-id: http://skia.googlecode.com/svn/trunk@13345 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core/SkPreConfig.h')
-rw-r--r-- | include/core/SkPreConfig.h | 10 |
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 |