summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2014-07-31 09:46:01 +0800
committerBernard Xiong <[email protected]>2014-07-31 09:46:01 +0800
commit07c486413b982e41f9c7afdbced5b2a684677a5c (patch)
tree67f16f3d517ee1e22fe92e12817189cdafad02c7 /components
parent59c128c0733c4b3ffa61558bb2ce8bf981c78adb (diff)
[external] PNG_NO_WRITE_SUPPORTED issue
Move PNG_NO_WRITE_SUPPORTED outside of RT_USING_NEWLIB. #197
Diffstat (limited to 'components')
-rw-r--r--components/external/libpng/pngconf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/external/libpng/pngconf.h b/components/external/libpng/pngconf.h
index bb0a189f9d..cca0657e4c 100644
--- a/components/external/libpng/pngconf.h
+++ b/components/external/libpng/pngconf.h
@@ -24,10 +24,10 @@
#define PNG_MAX_MALLOC_64K
#define PNG_NO_STDIO
#define PNG_NO_ERROR_NUMBERS
+#define PNG_NO_WRITE_SUPPORTED
#define PNG_ABORT() do { rt_kprintf("libpng abort.\n"); } while (0)
#ifndef RT_USING_NEWLIB
-#define PNG_NO_WRITE_SUPPORTED
#define PNG_NO_SETJMP_SUPPORTED
#define malloc rtgui_malloc
#define free rtgui_free