[libpng16] Ported libpng 1.5 options.awk/dfn file handling to 1.6, fixed one bug.

This commit is contained in:
John Bowler
2013-02-15 23:40:34 -06:00
committed by Glenn Randers-Pehrson
parent 2d99978f67
commit 42835d3d19
17 changed files with 316 additions and 168 deletions

View File

@@ -9,18 +9,11 @@
* and license in png.h
*/
#define HEADER PNG_DEFN_MAGIC-PNGLIB_LIBNAME {global:-PNG_DEFN_END
/* NOTE: PNG_JOIN is interpreted by the calling script as a signal to
* join the two things on either side, so we can do symbol
* substitution within the name, regular C ## joins the pp-tokens,
* not their final values.
*/
#define PNG_EXPORTA(ordinal, type, name, args, attributes)\
PNG_DEFN_MAGIC- SYMBOL_PREFIX PNG_JOIN name;-PNG_DEFN_END
PNG_DFN " @" SYMBOL_PREFIX "@@" name "@;"
#define TRAILER PNG_DEFN_MAGIC-local: *; };-PNG_DEFN_END
PNG_DFN "@" PNGLIB_LIBNAME "@ {global:"
HEADER
#include "../png.h"
TRAILER
PNG_DFN "local: *; };"