[libpng16] 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:34:41 -06:00
parent e40e37018d
commit 103b04170d
4 changed files with 20 additions and 13 deletions

View File

@@ -378,8 +378,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)
@@ -387,8 +385,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