cleanup
[platform/upstream/glib.git] / gio / gzlibcompressor.c
index bfcbcff..68445d0 100644 (file)
@@ -13,9 +13,7 @@
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General
- * Public License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
- * Boston, MA 02111-1307, USA.
+ * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
  *
  * Author: Alexander Larsson <alexl@redhat.com>
  */
@@ -72,6 +70,8 @@ struct _GZlibCompressor
 static void
 g_zlib_compressor_set_gzheader (GZlibCompressor *compressor)
 {
+  /* On win32, these functions were not exported before 1.2.4 */
+#if !defined (G_OS_WIN32) || ZLIB_VERNUM >= 0x1240
   const gchar *filename;
 
   if (compressor->format != G_ZLIB_COMPRESSOR_FORMAT_GZIP ||
@@ -91,6 +91,7 @@ g_zlib_compressor_set_gzheader (GZlibCompressor *compressor)
 
   if (deflateSetHeader (&compressor->zstream, &compressor->gzheader) != Z_OK)
     g_warning ("unexpected zlib error: %s\n", compressor->zstream.msg);
+#endif /* !G_OS_WIN32 || ZLIB >= 1.2.4 */
 }
 
 G_DEFINE_TYPE_WITH_CODE (GZlibCompressor, g_zlib_compressor, G_TYPE_OBJECT,
@@ -250,7 +251,7 @@ g_zlib_compressor_class_init (GZlibCompressorClass *klass)
    *
    * If set to a non-%NULL #GFileInfo object, and #GZlibCompressor:format is
    * %G_ZLIB_COMPRESSOR_FORMAT_GZIP, the compressor will write the file name
-   * and modification time from the file info to the the GZIP header.
+   * and modification time from the file info to the GZIP header.
    *
    * Since: 2.26
    */