Imported from libpng-1.4.0beta3.tar
diff --git a/pngwutil.c b/pngwutil.c
index cf2416f..8f9b7f5 100644
--- a/pngwutil.c
+++ b/pngwutil.c
@@ -25,6 +25,7 @@
buf[3] = (png_byte)(i & 0xff);
}
+#if defined(PNG_SAVE_INT_32_SUPPORTED)
/* The png_save_int_32 function assumes integers are stored in two's
* complement format. If this isn't the case, then this routine needs to
* be modified to write data in two's complement format.
@@ -37,6 +38,7 @@
buf[2] = (png_byte)((i >> 8) & 0xff);
buf[3] = (png_byte)(i & 0xff);
}
+#endif
/* Place a 16-bit number into a buffer in PNG byte order.
* The parameter is declared unsigned int, not png_uint_16,