diff options
author | John Bowler <jbowler@acm.org> | 2015-05-06 20:03:14 -0500 |
---|---|---|
committer | Glenn Randers-Pehrson <glennrp at users.sourceforge.net> | 2015-05-06 20:03:14 -0500 |
commit | 8ee821e69a32b0008ecd8d9cb15a7eeb44f287d3 (patch) | |
tree | 640abe4a5a9a395e6d309a9ca97483d2f5e281ba /pngwrite.c | |
parent | 279dc3f0bfece0855502d354b400f7bb93d21357 (diff) | |
download | libpng-8ee821e69a32b0008ecd8d9cb15a7eeb44f287d3.tar.gz |
[libpng16] PNG_RELEASE_BUILD replaces tests where the code depended on the build base
type and can be defined on the command line, allowing testing in beta builds. Back
ported from libpng17.
Diffstat (limited to 'pngwrite.c')
-rw-r--r-- | pngwrite.c | 2 |
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 |