@@ -194,8 +194,6 @@
# endif
#endif
-#include "png.h"
-
/* pngconf.h does not set PNG_DLL_EXPORT unless it is required, so: */
#ifndef PNG_DLL_EXPORT
# define PNG_DLL_EXPORT
@@ -328,6 +326,7 @@
# define PNGFAPI /* PRIVATE */
#endif
+#ifndef PNG_VERSION_INFO_ONLY
/* Other defines specific to compilers can go here. Try to keep
* them inside an appropriate ifdef/endif pair for portability.
*/
@@ -369,6 +368,7 @@
# include <m68881.h>
# endif
#endif /* FLOATING_ARITHMETIC || FLOATING_POINT */
+#endif /* VERSION_INFO_ONLY */
/* These macros may need to be architecture dependent. */
#define PNG_ALIGN_NONE 0 /* do not use data alignment */
@@ -679,6 +679,7 @@
*/
#ifndef PNG_VERSION_INFO_ONLY
+#include "png.h"
#include "pngstruct.h"
#include "pnginfo.h"