[libpng16] Replaced arbitrary use of 'extern' with #define PNG_LINKAGE_*. To

preserve API compatibility, the new defines all default to "extern"
(requested by Jan Nijtmans).
This commit is contained in:
Glenn Randers-Pehrson
2015-07-03 16:07:54 -05:00
parent a390897ba4
commit b9e5e5f5a8
6 changed files with 34 additions and 12 deletions

View File

@@ -249,6 +249,17 @@ setting Z_DEFAULT_STRATEGY default @Z_FILTERED
setting Z_DEFAULT_NOFILTER_STRATEGY default @Z_DEFAULT_STRATEGY
setting ZLIB_VERNUM default @ZLIB_VERNUM
# Linkage of:
#
# API: libpng API functions
# CALLBACK: internal non-file-local callbacks
# FUNCTION: internal non-file-local functions
# DATA: internal non-file-local (const) data
setting LINKAGE_API default extern
setting LINKAGE_CALLBACK default extern
setting LINKAGE_FUNCTION default extern
setting LINKAGE_DATA default extern
setting TEXT_Z_DEFAULT_COMPRESSION default @Z_DEFAULT_COMPRESSION
setting TEXT_Z_DEFAULT_STRATEGY default @Z_DEFAULT_STRATEGY