summaryrefslogtreecommitdiff
path: root/pngwrite.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-11-02 11:32:30 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-11-02 11:32:30 -0600
commit65d235a5db939de56663fb0f9edf02075ce3fd1d (patch)
treeca51a3c8344920de95ed94d11898725f1fc86b09 /pngwrite.c
parent0cb46e200c7a7323b0857944d3720d5fab16f886 (diff)
downloadlibpng-65d235a5db939de56663fb0f9edf02075ce3fd1d.tar.gz
[devel] Use the new PNG_CONVERT_tIME_SUPPORTED macro in pngwrite.c
Diffstat (limited to 'pngwrite.c')
-rw-r--r--pngwrite.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/pngwrite.c b/pngwrite.c
index 28ed5653c..c546cf093 100644
--- a/pngwrite.c
+++ b/pngwrite.c
@@ -420,8 +420,7 @@ png_write_end(png_structp png_ptr, png_infop info_ptr)
#endif
}
-#ifdef PNG_WRITE_tIME_SUPPORTED
-#ifndef _WIN32_WCE
+#ifdef PNG_CONVERT_tIME_SUPPORTED
/* "tm" structure is not supported on WindowsCE */
void PNGAPI
png_convert_from_struct_tm(png_timep ptime, struct tm FAR * ttime)
@@ -447,7 +446,6 @@ png_convert_from_time_t(png_timep ptime, time_t ttime)
png_convert_from_struct_tm(ptime, tbuf);
}
#endif
-#endif
/* Initialize png_ptr structure, and allocate any memory needed */
png_structp PNGAPI