symbols.dfn 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_DFN "@" name "@ @@" ordinal "@"
  18. #define PNG_REMOVED(ordinal, type, name, args, attributes)\
  19. PNG_DFN "; @" name "@ @@" ordinal "@"
  20. #define PNG_EXPORT_LAST_ORDINAL(ordinal)\
  21. PNG_DFN "; @@" ordinal "@"
  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, 'disabled' 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. #define PNG_SET_OPTION_SUPPORTED
  41. #undef PNG_H
  42. #include "../png.h"
  43. /* Finally there are a couple of places where option support
  44. * actually changes the APIs revealed using a #if/#else/#endif
  45. * test in png.h, test these here.
  46. */
  47. #undef PNG_FLOATING_POINT_SUPPORTED /* Exposes 'fixed' APIs */
  48. #undef PNG_ERROR_TEXT_SUPPORTED /* Exposes unsupported APIs */
  49. #undef PNG_H
  50. #include "../png.h"