summaryrefslogtreecommitdiff
path: root/pngtest.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-08-02 16:48:11 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2017-08-02 16:48:11 -0500
commit7c709f039f7ff3cc92eea03af0660a171ef0673d (patch)
treef89d2dca2dd96b9c7d22c05b83f99c6c42268512 /pngtest.c
parentf8de55da040fc025cfcf4f5aafc82e1a805d9307 (diff)
[libpng16] Restored png_get_eXIf() and png_set_eXIf() to maintain API compatability.
Diffstat (limited to 'pngtest.c')
-rw-r--r--pngtest.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/pngtest.c b/pngtest.c
index 64d5da86b..50d27ea44 100644
--- a/pngtest.c
+++ b/pngtest.c
@@ -1201,15 +1201,16 @@ test_one_file(PNG_CONST char *inname, PNG_CONST char *outname)
#ifdef PNG_READ_eXIf_SUPPORTED
{
png_bytep exif=NULL;
- png_uint_32 exif_length;
+ size_t exif_length;
- if (png_get_eXIf_1(read_ptr, read_info_ptr, &exif_length, &exif) != 0)
+ if (png_get_eXIf(read_ptr, read_info_ptr, &exif) != 0)
{
+ exif_length=strlen((const char *)exif);
if (exif_length > 1)
- printf(" eXIf type %c%c, %d bytes\n",exif[0],exif[1],
- (int)exif_length);
+ printf(" eXIf type %c%c, %lu bytes\n",exif[0],exif[1],
+ exif_length);
# ifdef PNG_WRITE_eXIf_SUPPORTED
- png_set_eXIf_1(write_ptr, write_info_ptr, exif_length, exif);
+ png_set_eXIf(write_ptr, write_info_ptr, exif);
# endif
}
}
@@ -2130,4 +2131,4 @@ main(void)
#endif
/* Generate a compiler error if there is an old png.h in the search path. */
-typedef png_libpng_version_1_6_32beta04 Your_png_h_is_not_version_1_6_32beta04;
+typedef png_libpng_version_1_6_32beta05 Your_png_h_is_not_version_1_6_32beta05;