[devel] Moved "#include png.h" inside pngpriv.h and removed "#include png.h"

from the source files, along with "#define PNG_EXPOSE_INTERNAL_STRUCTURES"
and "#define PNG_NO_PEDANTIC_WARNINGS" (John Bowler).
Also created new pngdebug.h and moved debug definitions there.
This commit is contained in:
Glenn Randers-Pehrson
2010-03-08 21:10:25 -06:00
parent b709c4aedc
commit c3cd22b404
59 changed files with 697 additions and 731 deletions

View File

@@ -18,12 +18,10 @@
* libpng use it at run time with png_set_read_fn(...).
*/
#define PNG_EXPOSE_INTERNAL_STRUCTURES
#define PNG_NO_PEDANTIC_WARNINGS
#include "png.h"
#ifdef PNG_READ_SUPPORTED
#include "pngpriv.h"
#ifdef PNG_READ_SUPPORTED
/* Read the data from whatever input you are using. The default routine
* reads from a file pointer. Note that this routine sometimes gets called
* with very small lengths, so you should implement some kind of simple