Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-02-09 15:01:24 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-02-09 15:01:24 (GMT)
commitd58aed1bd1e82193bab4c9156198804d556dca82 (patch)
tree0ceb53def58fb10ce7631cae91a5e288e7cdecaf /lib
parent626def3404bd0e2c7825f01bfeb2e57e390050cd (diff)
Fix compilation on non-gcc platforms
2005-02-09 Marco Pesenti Gritti <marco@gnome.org> * lib/ev-debug.c: * lib/ev-debug.h: * ps/ps-document.c: (ps_document_finalize), (set_up_page), (start_interpreter), (stop_interpreter), (document_load), (ps_document_next_page), (ps_document_goto_page), (ps_document_set_page_size), (ps_document_widget_event), (ps_document_render): * shell/ev-page-view.c: (ev_page_view_dispose): * shell/ev-view.c: (ev_view_finalize), (expose_bin_window): Fix compilation on non-gcc platforms
Diffstat (limited to 'lib')
-rw-r--r--lib/ev-debug.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/lib/ev-debug.h b/lib/ev-debug.h
index 2c4c521..53c1e61 100644
--- a/lib/ev-debug.h
+++ b/lib/ev-debug.h
@@ -32,13 +32,25 @@ G_BEGIN_DECLS
#define DISABLE_PROFILING
#endif
+#if defined(G_HAVE_GNUC_VARARGS)
+
#ifdef DISABLE_LOGGING
-#define LOG(msg, args...)
+#define LOG(msg, args...) G_STMT_START { } G_STMT_END
#else
-#define LOG(msg, args...) \
-g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
- "[ %s ] " msg, \
- __FILE__ , ## args);
+#define LOG(msg, args...) \
+g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, \
+ "[ %s ] " msg, \
+ __FILE__ , ## args)
+#endif
+
+#elif defined(G_HAVE_ISO_VARARGS)
+
+#define LOG(...) G_STMT_START { } G_STMT_END
+
+#else /* no varargs macros */
+
+static void LOG(const char *format, ...) {}
+
#endif
#ifdef DISABLE_PROFILING