Index: src/codec/SkCodec_libpng.h |
diff --git a/src/codec/SkCodec_libpng.h b/src/codec/SkCodec_libpng.h |
index 3afaa39bf4f4d84917bf9b3eb7fabaddda6991af..d25157c7a8227104f66ec57722a0a320c2333157 100644 |
--- a/src/codec/SkCodec_libpng.h |
+++ b/src/codec/SkCodec_libpng.h |
@@ -12,9 +12,11 @@ |
#include "SkRefCnt.h" |
#include "SkSwizzler.h" |
-extern "C" { |
- #include "png.h" |
-} |
+#ifdef SKIA_PNG_PREFIXED |
+ // this must proceed png.h |
+ #include "pngprefix.h" |
+#endif |
+#include "png.h" |
class SkScanlineDecoder; |
class SkStream; |