Index: src/images/SkImageDecoder_libpng.cpp |
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp |
index 4101b3e4ec30ce07d57955c2f772d0b4698cdebb..44aa8e2e645d6d3379a175457d6cd6a76ed4fa61 100644 |
--- a/src/images/SkImageDecoder_libpng.cpp |
+++ b/src/images/SkImageDecoder_libpng.cpp |
@@ -17,9 +17,12 @@ |
#include "SkTemplates.h" |
#include "SkUtils.h" |
#include "transform_scanline.h" |
-extern "C" { |
+ |
+#ifdef SKIA_PNG_PREFIXED |
+ // this must proceed png.h |
+ #include "pngprefix.h" |
+#endif |
#include "png.h" |
-} |
/* These were dropped in libpng >= 1.4 */ |
#ifndef png_infopp_NULL |