[libpng17] Moved redefines of png_error(), png_warning(), png_chunk_error(),

and png_chunk_warning() from pngpriv.h to png.h to make them visible
to libpng-calling applications.
This commit is contained in:
Glenn Randers-Pehrson
2014-02-16 08:36:28 -06:00
parent 50a09830b8
commit 258b986917
4 changed files with 22 additions and 15 deletions

View File

@@ -429,8 +429,6 @@
#ifdef PNG_WARNINGS_SUPPORTED
# define PNG_WARNING_PARAMETERS(p) png_warning_parameters p;
#else
# define png_warning(s1,s2) ((void)(s1))
# define png_chunk_warning(s1,s2) ((void)(s1))
# define png_warning_parameter(p,number,string) ((void)0)
# define png_warning_parameter_unsigned(p,number,format,value) ((void)0)
# define png_warning_parameter_signed(p,number,format,value) ((void)0)
@@ -438,8 +436,6 @@
# define PNG_WARNING_PARAMETERS(p)
#endif
#ifndef PNG_ERROR_TEXT_SUPPORTED
# define png_error(s1,s2) png_err(s1)
# define png_chunk_error(s1,s2) png_err(s1)
# define png_fixed_error(s1,s2) png_err(s1)
#endif