[devel] Added logunsupported=1 to cause pnglibconf.h to document disabled

options.  This makes the installed pnglibconf.h more readable but causes no
other change.  The intention is that users of libpng will find it
easier to understand if an API they need is missing.
This commit is contained in:
Glenn Randers-Pehrson 2010-04-28 21:26:57 -05:00
parent cf2fd3b6ca
commit 4a4de1899a
3 changed files with 14 additions and 1 deletions

View File

@ -212,6 +212,10 @@ version 1.5.0beta23 [April 29, 2010]
Corrected protection of png_get_user_transform_ptr. The API declaration in Corrected protection of png_get_user_transform_ptr. The API declaration in
png.h is removed if both READ and WRITE USER_TRANSFORM are turned off png.h is removed if both READ and WRITE USER_TRANSFORM are turned off
but was left defined in pngtrans.c but was left defined in pngtrans.c
Added logunsupported=1 to cause pnglibconf.h to document disabled options.
This makes the installed pnglibconf.h more readable but causes no
other change. The intention is that users of libpng will find it
easier to understand if an API they need is missing.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net: Send comments/corrections/commendations to png-mng-implement at lists.sf.net:
(subscription required; visit (subscription required; visit

View File

@ -2694,6 +2694,10 @@ version 1.5.0beta23 [April 29, 2010]
Corrected protection of png_get_user_transform_ptr. The API declaration in Corrected protection of png_get_user_transform_ptr. The API declaration in
png.h is removed if both READ and WRITE USER_TRANSFORM are turned off png.h is removed if both READ and WRITE USER_TRANSFORM are turned off
but was left defined in pngtrans.c but was left defined in pngtrans.c
Added logunsupported=1 to cause pnglibconf.h to document disabled options.
This makes the installed pnglibconf.h more readable but causes no
other change. The intention is that users of libpng will find it
easier to understand if an API they need is missing.
Send comments/corrections/commendations to png-mng-implement at lists.sf.net Send comments/corrections/commendations to png-mng-implement at lists.sf.net
(subscription required; visit (subscription required; visit

View File

@ -6,7 +6,7 @@
# #
com pnglibconf.h - library build configuration com pnglibconf.h - library build configuration
com com
com libpng version PNGLIB_VERSION - last changed on April 28, 2010 com libpng version PNGLIB_VERSION - last changed on April 29, 2010
com com
com Copyright (c) 1998-2010 Glenn Randers-Pehrson com Copyright (c) 1998-2010 Glenn Randers-Pehrson
com com
@ -99,6 +99,11 @@ file pnglibconf.h scripts/pnglibconf.dfa PNGLCONF_H
# libpng and need new or modified options/settings. # libpng and need new or modified options/settings.
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# The following causes commented out #undef lines to be written to
# pnglibconf.h, this can be stopped by logunsupported=0 in a later
# file or on the command line (after pnglibconf.dfa)
logunsupported = 1
# PNG_USER_CONFIG has to be defined on the compiler command line # PNG_USER_CONFIG has to be defined on the compiler command line
# to cause pngusr.h to be read while constructing pnglibconf.h # to cause pngusr.h to be read while constructing pnglibconf.h
# #