summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/test-api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test-api.c b/src/test-api.c
index 1f8f6cf..4a2acaa 100644
--- a/src/test-api.c
+++ b/src/test-api.c
@@ -19,6 +19,8 @@
*/
+#include "config.h"
+
#include <glib.h>
#include <telepathy-glib/telepathy-glib.h>