瀏覽代碼

[external] PNG_NO_WRITE_SUPPORTED issue

Move PNG_NO_WRITE_SUPPORTED outside of RT_USING_NEWLIB. #197
Bernard Xiong 10 年之前
父節點
當前提交
07c486413b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/external/libpng/pngconf.h

+ 1 - 1
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