symbols.dfn 1.9 KB

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