Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 1 | |
| 2 | /* symbols.dfn - find all exported symbols |
| 3 | * |
Glenn Randers-Pehrson | f5ea1b7 | 2011-01-06 06:42:51 -0600 | [diff] [blame] | 4 | * Last changed in libpng version 1.5.0 [January 6, 2011] |
Glenn Randers-Pehrson | 5c5db5a | 2011-01-21 23:23:34 -0600 | [diff] [blame] | 5 | * Copyright (c) 1998-2011 Glenn Randers-Pehrson |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 6 | * |
| 7 | * This code is released under the libpng license. |
| 8 | * For conditions of distribution and use, see the disclaimer |
| 9 | * and license in png.h |
| 10 | */ |
| 11 | |
| 12 | /* NOTE: making 'symbols.chk' checks both that the exported |
| 13 | * symbols in the library don't change and (implicitly) that |
Cosmin Truta | 82200da | 2014-03-22 09:29:59 -0500 | [diff] [blame] | 14 | * scripts/pnglibconf.h.prebuilt is as expected. |
| 15 | * If scripts/pnglibconf.h.prebuilt is remade using |
| 16 | * scripts/pnglibconf.dfa then this checks the .dfa file too. |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 17 | */ |
| 18 | |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 19 | #define PNG_EXPORTA(ordinal, type, name, args, attributes)\ |
Glenn Randers-Pehrson | 871b1d0 | 2013-03-02 14:58:22 -0600 | [diff] [blame] | 20 | PNG_DFN "@" name "@ @@" ordinal "@" |
Glenn Randers-Pehrson | 23d3970 | 2010-12-06 18:28:02 -0600 | [diff] [blame] | 21 | #define PNG_REMOVED(ordinal, type, name, args, attributes)\ |
Glenn Randers-Pehrson | 871b1d0 | 2013-03-02 14:58:22 -0600 | [diff] [blame] | 22 | PNG_DFN "; @" name "@ @@" ordinal "@" |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 23 | #define PNG_EXPORT_LAST_ORDINAL(ordinal)\ |
Glenn Randers-Pehrson | 871b1d0 | 2013-03-02 14:58:22 -0600 | [diff] [blame] | 24 | PNG_DFN "; @@" ordinal "@" |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 25 | |
Glenn Randers-Pehrson | 8c66786 | 2010-08-24 16:16:35 -0500 | [diff] [blame] | 26 | /* Read the defaults, but use scripts/pnglibconf.h.prebuilt; the 'standard' |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 27 | * header file. |
| 28 | */ |
Glenn Randers-Pehrson | 8c66786 | 2010-08-24 16:16:35 -0500 | [diff] [blame] | 29 | #include "pnglibconf.h.prebuilt" |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 30 | #include "../png.h" |
| 31 | |
| 32 | /* Some things are turned off by default. Turn these things |
| 33 | * on here (by hand) to get the APIs they expose and validate |
| 34 | * that no harm is done. This list is the set of options |
Glenn Randers-Pehrson | 98b4f00 | 2010-04-16 22:30:26 -0500 | [diff] [blame] | 35 | * defaulted to 'off' in scripts/pnglibconf.dfa |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 36 | * |
Glenn Randers-Pehrson | 98b4f00 | 2010-04-16 22:30:26 -0500 | [diff] [blame] | 37 | * Maintenance: if scripts/pnglibconf.dfa options are changed |
John Bowler | f372810 | 2013-03-04 16:26:31 -0600 | [diff] [blame] | 38 | * from, or to, 'disabled' this needs updating! |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 39 | */ |
| 40 | #define PNG_BENIGN_ERRORS_SUPPORTED |
| 41 | #define PNG_ERROR_NUMBERS_SUPPORTED |
| 42 | #define PNG_READ_BIG_ENDIAN_SUPPORTED /* should do nothing! */ |
| 43 | #define PNG_INCH_CONVERSIONS_SUPPORTED |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 44 | #define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED |
John Bowler | f372810 | 2013-03-04 16:26:31 -0600 | [diff] [blame] | 45 | #define PNG_SET_OPTION_SUPPORTED |
Glenn Randers-Pehrson | 862cb20 | 2010-04-16 22:12:51 -0500 | [diff] [blame] | 46 | |
| 47 | #undef PNG_H |
| 48 | #include "../png.h" |
| 49 | |
| 50 | /* Finally there are a couple of places where option support |
| 51 | * actually changes the APIs revealed using a #if/#else/#endif |
| 52 | * test in png.h, test these here. |
| 53 | */ |
| 54 | #undef PNG_FLOATING_POINT_SUPPORTED /* Exposes 'fixed' APIs */ |
| 55 | #undef PNG_ERROR_TEXT_SUPPORTED /* Exposes unsupported APIs */ |
| 56 | |
| 57 | #undef PNG_H |
| 58 | #include "../png.h" |