aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/images/SkImageDecoder_libpng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/images/SkImageDecoder_libpng.cpp')
-rw-r--r--src/images/SkImageDecoder_libpng.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/images/SkImageDecoder_libpng.cpp b/src/images/SkImageDecoder_libpng.cpp
index 44aa8e2e64..4101b3e4ec 100644
--- a/src/images/SkImageDecoder_libpng.cpp
+++ b/src/images/SkImageDecoder_libpng.cpp
@@ -17,12 +17,9 @@
#include "SkTemplates.h"
#include "SkUtils.h"
#include "transform_scanline.h"
-
-#ifdef SKIA_PNG_PREFIXED
- // this must proceed png.h
- #include "pngprefix.h"
-#endif
+extern "C" {
#include "png.h"
+}
/* These were dropped in libpng >= 1.4 */
#ifndef png_infopp_NULL