summaryrefslogtreecommitdiff
path: root/pngwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'pngwrite.c')
-rw-r--r--pngwrite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pngwrite.c b/pngwrite.c
index 64b2438f2..305e2df78 100644
--- a/pngwrite.c
+++ b/pngwrite.c
@@ -543,7 +543,7 @@ png_create_write_struct_2,(png_const_charp user_png_ver, png_voidp error_ptr,
/* App warnings are warnings in release (or release candidate) builds but
* are errors during development.
*/
-#if PNG_LIBPNG_BUILD_BASE_TYPE >= PNG_LIBPNG_BUILD_RC
+#if PNG_RELEASE_BUILD
png_ptr->flags |= PNG_FLAG_APP_WARNINGS_WARN;
#endif