gnome-utils r8309 - trunk/logview



Author: cosimoc
Date: Tue Dec 23 13:28:02 2008
New Revision: 8309
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8309&view=rev

Log:
Ifdef all the ZLib code.

Modified:
   trunk/logview/logview-log.c

Modified: trunk/logview/logview-log.c
==============================================================================
--- trunk/logview/logview-log.c	(original)
+++ trunk/logview/logview-log.c	Tue Dec 23 13:28:02 2008
@@ -338,6 +338,8 @@
   return FALSE;
 }
 
+#ifdef HAVE_ZLIB
+
 /* GZip functions adapted for GIO from gnome-vfs/gzip-method.c */
 
 #define Z_BUFSIZE 16384
@@ -596,6 +598,8 @@
   return err;
 }
 
+#endif /* HAVE_ZLIB */
+
 static gboolean
 log_load (GIOSchedulerJob *io_job,
           GCancellable *cancellable,
@@ -711,13 +715,13 @@
     is = real_is;
 
     gz_handle_free (gz);
-#else
+#else /* HAVE_ZLIB */
     g_object_unref (is);
 
     err = g_error_new_literal (LOGVIEW_ERROR_QUARK, LOGVIEW_ERROR_NOT_SUPPORTED,
                                _("This version of System Log does not support GZipped logs."));
     goto out;
-#endif
+#endif /* HAVE_ZLIB */
   }
 
   log->priv->stream = g_data_input_stream_new (is);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]