[master] Added PNG_CONVERT_tIME_SUPPORTED macro.

This commit is contained in:
Glenn Randers-Pehrson
2009-11-02 11:26:10 -06:00
parent d8bf20d9ac
commit 6dcfbc479d
4 changed files with 13 additions and 5 deletions

7
png.h
View File

@@ -1651,18 +1651,15 @@ extern PNG_EXPORT(png_charp,png_convert_to_rfc1123)
PNGARG((png_structp png_ptr, png_timep ptime));
#endif
#ifdef PNG_WRITE_tIME_SUPPORTED
#ifdef PNG_CONVERT_tIME_SUPPORTED
/* Convert from a struct tm to png_time */
# ifndef _WIN32_WCE
/* "tm" structure is not supported on WindowsCE */
extern PNG_EXPORT(void,png_convert_from_struct_tm) PNGARG((png_timep ptime,
struct tm FAR * ttime));
/* Convert from time_t to png_time. Uses gmtime() */
extern PNG_EXPORT(void,png_convert_from_time_t) PNGARG((png_timep ptime,
time_t ttime));
# endif /* _WIN32_WCE */
#endif /* PNG_WRITE_tIME_SUPPORTED */
#endif /* PNG_CONVERT_tIME_SUPPORTED */
#ifdef PNG_READ_EXPAND_SUPPORTED
/* Expand data to 24-bit RGB, or 8-bit grayscale, with alpha if available. */