diff --git a/components/external/libpng/pngconf.h b/components/external/libpng/pngconf.h index 611a0439bcf8aab89b2c7e69837e641e77d5f683..0cc2fc3551dc3319632187339a65193b8548cd96 100644 --- a/components/external/libpng/pngconf.h +++ b/components/external/libpng/pngconf.h @@ -20,13 +20,17 @@ #define __RT_THREAD__ #ifdef __RT_THREAD__ +#include +#define PNG_MAX_MALLOC_64K + +#ifndef RT_USING_NEWLIB #define PNG_NO_WRITE_SUPPORTED #define PNG_NO_STDIO #define PNG_NO_SETJMP_SUPPORTED -#define PNG_MAX_MALLOC_64K #define malloc rtgui_malloc #define free rtgui_free #endif +#endif #define PNG_1_2_X