summaryrefslogtreecommitdiff
path: root/packages/libeventdb/libeventdb-0.90/libeventdb-unbreak-LIVE-macro.patch
blob: e5da0afc89ca25a25643d13bf9360f35110b844a (plain)
1
2
3
4
5
6
7
8
9
10
11
--- libeventdb-0.90/event.h.orig	2008-03-13 23:05:10.000000000 -0700
+++ libeventdb-0.90/event.h	2008-03-13 23:05:40.000000000 -0700
@@ -130,7 +130,7 @@ extern GSList *event_list (EventSource *
 			   GError **error)
      __attribute__ ((visibility ("hidden")));
 
-#define LIVE(ev) (g_assert (! EVENT (ev)->dead))
+#define LIVE(ev) G_STMT_START { g_assert (! EVENT (ev)->dead); } G_STMT_END
 
 /* Marks the event as well as the calendar in which lives as
    modified.  */