提交 45b8761b 编写于 作者: G Glenn Randers-Pehrson

[devel] Make #define PNG_CONVERT_tIME_SUPPORTED depend on PNG_tIME_SUPPORTED

上级 cef4f144
......@@ -606,6 +606,8 @@ version 1.4.0beta91 [November 3, 2009]
Added PNG_CONVERT_tIME_SUPPORTED macro.
version 1.4.0beta92 [November 3, 2009]
Make inclusion of time.h in pngconf.h depend on PNG_CONVERT_tIME_SUPPORTED
Make #define PNG_CONVERT_tIME_SUPPORTED depend on PNG_tIME_SUPPORTED
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
......
......@@ -2292,6 +2292,8 @@ version 1.4.0beta91 [November 3, 2009]
Added PNG_CONVERT_tIME_SUPPORTED macro.
version 1.4.0beta92 [November 3, 2009]
Make inclusion of time.h in pngconf.h depend on PNG_CONVERT_tIME_SUPPORTED
Make #define PNG_CONVERT_tIME_SUPPORTED depend on PNG_tIME_SUPPORTED
Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit
......
......@@ -22,6 +22,8 @@
#ifndef PNGCONF_H
#define PNGCONF_H
#define PNG_1_4_X
#ifndef PNG_NO_LIMITS_H
# include <limits.h>
#endif
......@@ -997,13 +999,15 @@
# endif
#endif
#ifndef PNG_NO_CONVERT_tIME
# ifndef _WIN32_WCE
/* The "tm" structure is not supported on WindowsCE */
# ifndef PNG_CONVERT_tIME_SUPPORTED
# define PNG_CONVERT_tIME_SUPPORTED
#ifdef PNG_tIME_SUPPORTED
# ifndef PNG_NO_CONVERT_tIME
# ifndef _WIN32_WCE
/* The "tm" structure is not supported on WindowsCE */
# ifndef PNG_CONVERT_tIME_SUPPORTED
# define PNG_CONVERT_tIME_SUPPORTED
# endif
# endif
# endif
# endif
#endif
#endif /* PNG_WRITE_ANCILLARY_CHUNKS_SUPPORTED */
......@@ -1033,8 +1037,9 @@
# define PNG_INFO_IMAGE_SUPPORTED
#endif
/* Need the time information for reading tIME chunks */
#ifdef PNG_tIME_SUPPORTED
/* Need the time information for converting tIME chunks */
#ifdef PNG_CONVERT_tIME_SUPPORTED
/* "time.h" functions are not supported on WindowsCE */
# include <time.h>
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册