2010-04-16 23:12:51 -04:00
|
|
|
|
|
|
|
/* symbols.dfn - find all exported symbols
|
|
|
|
*
|
2010-04-28 08:52:16 -04:00
|
|
|
* Last changed in libpng version 1.5.0 [April 28, 2010]
|
2010-04-16 23:12:51 -04:00
|
|
|
* Copyright (c) 1998-2010 Glenn Randers-Pehrson
|
|
|
|
*
|
|
|
|
* This code is released under the libpng license.
|
|
|
|
* For conditions of distribution and use, see the disclaimer
|
|
|
|
* and license in png.h
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* NOTE: making 'symbols.chk' checks both that the exported
|
|
|
|
* symbols in the library don't change and (implicitly) that
|
2010-04-16 23:30:26 -04:00
|
|
|
* scripts/pnglibconf.h is as expected. If scripts/pnglibconf.h
|
|
|
|
* is remade using scripts/pnglibconf.dfa then this checks the
|
2010-04-16 23:12:51 -04:00
|
|
|
* .dfa file too.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define PNG_EXPORT(type, name, args, attributes, ordinal)\
|
|
|
|
PNG_DEFN_MAGIC-name @ordinal-PNG_DEFN_END
|
|
|
|
#define PNG_REMOVED(type, name, args, attributes, ordinal)\
|
|
|
|
PNG_DEFN_MAGIC-; name @ordinal-PNG_DEFN_END
|
|
|
|
#define PNG_EXPORT_LAST_ORDINAL(ordinal)\
|
|
|
|
PNG_DEFN_MAGIC-; @ordinal-PNG_DEFN_END
|
|
|
|
|
2010-04-16 23:30:26 -04:00
|
|
|
/* Read the defaults, but use scripts/pnglibconf.h; the 'standard'
|
2010-04-16 23:12:51 -04:00
|
|
|
* header file.
|
|
|
|
*/
|
2010-04-16 23:30:26 -04:00
|
|
|
#include "pnglibconf.h"
|
2010-04-16 23:12:51 -04:00
|
|
|
#include "../png.h"
|
|
|
|
|
|
|
|
/* Some things are turned off by default. Turn these things
|
|
|
|
* on here (by hand) to get the APIs they expose and validate
|
|
|
|
* that no harm is done. This list is the set of options
|
2010-04-16 23:30:26 -04:00
|
|
|
* defaulted to 'off' in scripts/pnglibconf.dfa
|
2010-04-16 23:12:51 -04:00
|
|
|
*
|
2010-04-16 23:30:26 -04:00
|
|
|
* Maintenance: if scripts/pnglibconf.dfa options are changed
|
2010-04-16 23:12:51 -04:00
|
|
|
* from, or to, 'off' this needs updating!
|
|
|
|
*/
|
|
|
|
#define PNG_BENIGN_ERRORS_SUPPORTED
|
|
|
|
#define PNG_ERROR_NUMBERS_SUPPORTED
|
|
|
|
#define PNG_READ_BIG_ENDIAN_SUPPORTED /* should do nothing! */
|
|
|
|
#define PNG_INCH_CONVERSIONS_SUPPORTED
|
|
|
|
#define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED
|
|
|
|
|
|
|
|
#undef PNG_H
|
|
|
|
#include "../png.h"
|
|
|
|
|
|
|
|
/* Finally there are a couple of places where option support
|
|
|
|
* actually changes the APIs revealed using a #if/#else/#endif
|
|
|
|
* test in png.h, test these here.
|
|
|
|
*/
|
|
|
|
#undef PNG_FLOATING_POINT_SUPPORTED /* Exposes 'fixed' APIs */
|
|
|
|
#undef PNG_ERROR_TEXT_SUPPORTED /* Exposes unsupported APIs */
|
|
|
|
|
|
|
|
#undef PNG_H
|
|
|
|
#include "../png.h"
|