summaryrefslogtreecommitdiff
path: root/pngconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'pngconf.h')
-rw-r--r--pngconf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pngconf.h b/pngconf.h
index 62eb0e887..f1235a637 100644
--- a/pngconf.h
+++ b/pngconf.h
@@ -1522,6 +1522,13 @@ typedef z_stream FAR * png_zstreamp;
# endif
#endif
+#ifdef PNG_PEDANTIC_WARNINGS
+# ifndef PNG_PEDANTIC_WARNINGS_SUPPORTED
+# define PNG_PEDANTIC_WARNINGS_SUPPORTED
+# endif
+#endif
+
+#ifdef PNG_PEDANTIC_WARNINGS_SUPPORTED
/* Support for compiler specific function attributes. These are used
* so that where compiler support is available incorrect use of API
* functions in png.h will generate compiler warnings. Added at libpng
@@ -1560,6 +1567,7 @@ typedef z_stream FAR * png_zstreamp;
# endif
# endif
#endif
+#endif /* PNG_PEDANTIC_WARNINGS */
#ifndef PNG_DEPRECATED
# define PNG_DEPRECATED /* Use of this function is deprecated */