empathy r1075 - trunk/libempathy



Author: xclaesse
Date: Thu May  1 23:23:26 2008
New Revision: 1075
URL: http://svn.gnome.org/viewvc/empathy?rev=1075&view=rev

Log:
Fix build with debug disabled.


Modified:
   trunk/libempathy/empathy-debug.c
   trunk/libempathy/empathy-debug.h

Modified: trunk/libempathy/empathy-debug.c
==============================================================================
--- trunk/libempathy/empathy-debug.c	(original)
+++ trunk/libempathy/empathy-debug.c	Thu May  1 23:23:26 2008
@@ -89,6 +89,17 @@
 
 #else
 
+gboolean
+empathy_debug_flag_is_set (EmpathyDebugFlags flag)
+{
+  return FALSE;
+}
+
+void
+empathy_debug (EmpathyDebugFlags flag, const gchar *format, ...)
+{
+}
+
 void
 empathy_debug_set_flags (const gchar *flags_string)
 {

Modified: trunk/libempathy/empathy-debug.h
==============================================================================
--- trunk/libempathy/empathy-debug.h	(original)
+++ trunk/libempathy/empathy-debug.h	Thu May  1 23:23:26 2008
@@ -29,8 +29,6 @@
 
 G_BEGIN_DECLS
 
-#ifdef ENABLE_DEBUG
-
 /* Please keep this enum in sync with #keys in empathy-debug.c */
 typedef enum
 {
@@ -46,9 +44,6 @@
 gboolean empathy_debug_flag_is_set (EmpathyDebugFlags flag);
 void empathy_debug (EmpathyDebugFlags flag, const gchar *format, ...)
     G_GNUC_PRINTF (2, 3);
-
-#endif /* ENABLE_DEBUG */
-
 void empathy_debug_set_flags (const gchar *flags_string);
 G_END_DECLS
 



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