Index: src/ports/SkImageDecoder_WIC.cpp |
diff --git a/src/ports/SkImageDecoder_WIC.cpp b/src/ports/SkImageDecoder_WIC.cpp |
index 3cc9a32b6818f1e333b588c1aacebd82db3d3220..fa408836a4a4c09f71d3389ea1121b9d3f653cc8 100644 |
--- a/src/ports/SkImageDecoder_WIC.cpp |
+++ b/src/ports/SkImageDecoder_WIC.cpp |
@@ -8,6 +8,8 @@ |
#include "SkTypes.h" |
+#if defined(SK_BUILD_FOR_WIN32) |
+ |
// Workaround for: |
// http://connect.microsoft.com/VisualStudio/feedback/details/621653/ |
// http://crbug.com/225822 |
@@ -462,3 +464,5 @@ static SkImageDecoder::Format get_format_wic(SkStreamRewindable* stream) { |
} |
static SkImageDecoder_FormatReg gFormatReg(get_format_wic); |
+ |
+#endif // defined(SK_BUILD_FOR_WIN32) |