mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-05 23:22:43 +00:00
[external] PNG_NO_WRITE_SUPPORTED issue
Move PNG_NO_WRITE_SUPPORTED outside of RT_USING_NEWLIB. #197
This commit is contained in:
2
components/external/libpng/pngconf.h
vendored
2
components/external/libpng/pngconf.h
vendored
@@ -24,10 +24,10 @@
|
|||||||
#define PNG_MAX_MALLOC_64K
|
#define PNG_MAX_MALLOC_64K
|
||||||
#define PNG_NO_STDIO
|
#define PNG_NO_STDIO
|
||||||
#define PNG_NO_ERROR_NUMBERS
|
#define PNG_NO_ERROR_NUMBERS
|
||||||
|
#define PNG_NO_WRITE_SUPPORTED
|
||||||
#define PNG_ABORT() do { rt_kprintf("libpng abort.\n"); } while (0)
|
#define PNG_ABORT() do { rt_kprintf("libpng abort.\n"); } while (0)
|
||||||
|
|
||||||
#ifndef RT_USING_NEWLIB
|
#ifndef RT_USING_NEWLIB
|
||||||
#define PNG_NO_WRITE_SUPPORTED
|
|
||||||
#define PNG_NO_SETJMP_SUPPORTED
|
#define PNG_NO_SETJMP_SUPPORTED
|
||||||
#define malloc rtgui_malloc
|
#define malloc rtgui_malloc
|
||||||
#define free rtgui_free
|
#define free rtgui_free
|
||||||
|
|||||||
Reference in New Issue
Block a user