summaryrefslogtreecommitdiff
path: root/telepathy-glib/svc-protocol.h
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-05-30 11:34:17 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-06-05 12:13:17 +0200
commit05287db8a5d4557435356df0fcd6e1cf202e6503 (patch)
treed81eeb4a8f026089fa8ec583e53e47d3fa0f33ea /telepathy-glib/svc-protocol.h
parentd95d44bd327d96c5936deee1a3d970bcf27f29d0 (diff)
downloadtelepathy-glib-05287db8a5d4557435356df0fcd6e1cf202e6503.tar.gz
Add single-include #error in all headers included from telepathy-glib(-dbus).h
https://bugs.freedesktop.org/show_bug.cgi?id=49384
Diffstat (limited to 'telepathy-glib/svc-protocol.h')
-rw-r--r--telepathy-glib/svc-protocol.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/telepathy-glib/svc-protocol.h b/telepathy-glib/svc-protocol.h
index 934d44f20..8e0b3d631 100644
--- a/telepathy-glib/svc-protocol.h
+++ b/telepathy-glib/svc-protocol.h
@@ -1,3 +1,7 @@
+#if defined (TP_DISABLE_SINGLE_INCLUDE) && !defined (_TP_IN_META_HEADER) && !defined (_TP_COMPILATION)
+#error "Only <telepathy-glib/telepathy-glib-dbus.h> can be included directly."
+#endif
+
#ifndef __TP_META_SVC_PROTOCOL_H__
#define __TP_META_SVC_PROTOCOL_H__