summaryrefslogtreecommitdiff
path: root/pngwrite.c
diff options
context:
space:
mode:
Diffstat (limited to 'pngwrite.c')
-rw-r--r--pngwrite.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pngwrite.c b/pngwrite.c
index 682bea8cf..26ea2db16 100644
--- a/pngwrite.c
+++ b/pngwrite.c
@@ -396,11 +396,13 @@ png_write_end(png_structp png_ptr, png_infop info_ptr)
/* This flush, added in libpng-1.0.8, removed from libpng-1.0.9beta03,
* and restored again in libpng-1.2.30, may cause some applications that
* do not set png_ptr->output_flush_fn to crash. If your application
- * experiences this problem, please try building libpng with
- * PNG_NO_WRITE_FLUSH defined, and report the event to png-mng-implement
- * at lists.sf.net .
+ * experiences a problem, please try building libpng with
+ * PNG_WRITE_FLUSH_AFTER_IEND_SUPPORTED defined, and report the event to
+ * png-mng-implement at lists.sf.net . This kludge will be removed
+ * from libpng-1.4.0.
*/
-#if defined(PNG_WRITE_FLUSH_SUPPORTED)
+#if defined(PNG_WRITE_FLUSH_SUPPORTED) && \
+ defined(PNG_WRITE_FLUSH_AFTER_IEND_SUPPORTED)
png_flush(png_ptr);
#endif
}