diff options
| author | bernard.xiong <[email protected]> | 2011-03-10 06:39:08 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2011-03-10 06:39:08 +0000 |
| commit | 4a0e072cc59792c44404910d912e16958b74ba60 (patch) | |
| tree | 909b31452c32d1c4e769f8cdf2f23c3aba4791ee /components | |
| parent | 9fab1b316f14dbd05ebda2e031e6a9bd585e60e3 (diff) | |
update png configuration.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1323 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
| -rw-r--r-- | components/external/libpng/pngconf.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/external/libpng/pngconf.h b/components/external/libpng/pngconf.h index 611a0439bc..0cc2fc3551 100644 --- a/components/external/libpng/pngconf.h +++ b/components/external/libpng/pngconf.h @@ -20,13 +20,17 @@ #define __RT_THREAD__ #ifdef __RT_THREAD__ +#include <rtthread.h> +#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 |
