[libpng16] Imported from libpng-1.6.0beta03.tar

This commit is contained in:
Glenn Randers-Pehrson
2011-12-22 07:26:15 -06:00
parent bc79d70965
commit 28d9339777
11 changed files with 32 additions and 21 deletions

View File

@@ -3887,6 +3887,9 @@ perform_formatting_test(png_store *volatile ps)
{
png_const_charp correct = "29 Aug 2079 13:53:60 +0000";
png_const_charp result;
# if PNG_LIBPNG_VER >= 10600
char timestring[29];
# endif
png_structp pp;
png_time pt;
@@ -3904,7 +3907,15 @@ perform_formatting_test(png_store *volatile ps)
pt.minute = 53;
pt.second = 60; /* a leap second */
result = png_convert_to_rfc1123(pp, &pt);
# if PNG_LIBPNG_VER < 10600
result = png_convert_to_rfc1123(pp, &pt);
# else
if (png_convert_to_rfc1123_buffer(timestring, &pt))
result = timestring;
else
result = NULL;
# endif
if (result == NULL)
png_error(pp, "png_convert_to_rfc1123 failed");