[master] Marked "internally exported" functions with PNG_PRIVATE.

This commit is contained in:
Glenn Randers-Pehrson
2009-11-11 14:24:27 -06:00
parent a5fc3eb9d4
commit c87f913eb9
4 changed files with 175 additions and 141 deletions

View File

@@ -1549,6 +1549,15 @@ typedef z_stream FAR * png_zstreamp;
# ifndef PNG_DEPSTRUCT
# define PNG_DEPSTRUCT __attribute__((__deprecated__))
# endif
# ifndef PNG_PRIVATE
#if 0 /* Doesn't work so we use deprecated instead*/
# define PNG_PRIVATE \
__attribute__((warning("This function is not exported by libpng.")))
#else
# define PNG_PRIVATE \
__attribute__((__deprecated__))
#endif
# endif
# endif
#endif
@@ -1567,6 +1576,9 @@ typedef z_stream FAR * png_zstreamp;
#ifndef PNG_DEPSTRUCT
# define PNG_DEPSTRUCT /* Access to this struct member is deprecated */
#endif
#ifndef PNG_PRIVATE
# define PNG_PRIVATE /* This is a private libpng function */
#endif
/* User may want to use these so they are not in PNG_INTERNAL. Any library
* functions that are passed far data must be model independent.