summaryrefslogtreecommitdiff
path: root/pngwrite.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-02-17 21:06:23 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2015-02-17 21:06:23 -0600
commitd3ff44f0d50f9121a0b0e78c3a3c3dce3db9631f (patch)
tree713d21bc7bfc4c4bb44d1e614468a072e5110cb3 /pngwrite.c
parent43d90b161006bd6a6bb42aa231eb427edc0f2b75 (diff)
downloadlibpng-d3ff44f0d50f9121a0b0e78c3a3c3dce3db9631f.tar.gz
[libpng16] Added PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED macro, on by default.
Diffstat (limited to 'pngwrite.c')
-rw-r--r--pngwrite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pngwrite.c b/pngwrite.c
index 94548877b..1a21aa3ad 100644
--- a/pngwrite.c
+++ b/pngwrite.c
@@ -1372,6 +1372,7 @@ png_set_filter_heuristics_fixed(png_structrp png_ptr, int heuristic_method,
#endif /* FIXED_POINT */
#endif /* WRITE_WEIGHTED_FILTER */
+#ifdef PNG_WRITE_CUSTOMIZE_COMPRESSION_SUPPORTED
void PNGAPI
png_set_compression_level(png_structrp png_ptr, int level)
{
@@ -1454,6 +1455,7 @@ png_set_compression_method(png_structrp png_ptr, int method)
png_ptr->zlib_method = method;
}
+#endif /* WRITE_CUSTOMIZE_COMPRESSION */
/* The following were added to libpng-1.5.4 */
#ifdef PNG_WRITE_CUSTOMIZE_ZTXT_COMPRESSION_SUPPORTED