summaryrefslogtreecommitdiff
path: root/tests/dbus/test-tpl-log-iter-xml.c
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@freedesktop.org>2013-01-09 13:43:49 +0100
committerDebarshi Ray <debarshir@freedesktop.org>2013-01-09 15:28:21 +0100
commit33531660b4d5c6bb1450ac80686e75012a06a7eb (patch)
tree9daa4d67e9453d118837cb34faaef1bf85b74416 /tests/dbus/test-tpl-log-iter-xml.c
parentfb8c6f057b102b854e608cc48f3a08cf2daa59f8 (diff)
downloadtelepathy-logger-33531660b4d5c6bb1450ac80686e75012a06a7eb.tar.gz
Include config.h as the first thing in every .c file
This is Autoconf best-practice, and ensures that the GLib and Telepathy version-selection macros defined by configure.ac work as intended. Including config.h turns on ENABLE_DEBUG, which in turn leads to the usage of _tpl_debug_set_flags_from_env. In those cases we should include telepathy-logger/debug-internal.h also. Fixes: https://bugs.freedesktop.org/59165
Diffstat (limited to 'tests/dbus/test-tpl-log-iter-xml.c')
-rw-r--r--tests/dbus/test-tpl-log-iter-xml.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dbus/test-tpl-log-iter-xml.c b/tests/dbus/test-tpl-log-iter-xml.c
index 7b966f6..b01a322 100644
--- a/tests/dbus/test-tpl-log-iter-xml.c
+++ b/tests/dbus/test-tpl-log-iter-xml.c
@@ -1,6 +1,9 @@
+#include "config.h"
+
#include "lib/util.h"
#include "telepathy-logger/call-event.h"
+#include "telepathy-logger/debug-internal.h"
#include "telepathy-logger/log-iter-internal.h"
#include "telepathy-logger/log-iter-xml-internal.h"
#include "telepathy-logger/log-store-xml-internal.h"