[devel] Make #define PNG_CONVERT_tIME_SUPPORTED depend on PNG_tIME_SUPPORTED

This commit is contained in:
Glenn Randers-Pehrson
2009-11-03 11:42:05 -06:00
parent cef4f14470
commit 45b8761bc8
3 changed files with 17 additions and 8 deletions

View File

@@ -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