[next] telepathy-glib: meta-headers: #define _TP_IN_META_HEADER for future single-include guards
Xavier Claessens
xclaesse at kemper.freedesktop.org
Wed Jun 6 02:40:26 PDT 2012
Module: telepathy-glib
Branch: next
Commit: 4acfebcc2020de2376eac55787b0b6f0747ca607
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=4acfebcc2020de2376eac55787b0b6f0747ca607
Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date: Wed May 30 12:14:58 2012 +0200
meta-headers: #define _TP_IN_META_HEADER for future single-include guards
https://bugs.freedesktop.org/show_bug.cgi?id=49384
---
telepathy-glib/telepathy-glib-dbus.h | 10 ++++++----
telepathy-glib/telepathy-glib.h | 6 ++++--
2 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/telepathy-glib/telepathy-glib-dbus.h b/telepathy-glib/telepathy-glib-dbus.h
index 7e16455..6227739 100644
--- a/telepathy-glib/telepathy-glib-dbus.h
+++ b/telepathy-glib/telepathy-glib-dbus.h
@@ -18,12 +18,13 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef TELEPATHY_GLIB_DBUS_H_INCLUDED
-#define TELEPATHY_GLIB_DBUS_H_INCLUDED
-#define _TP_IN_META_HEADER
+#ifndef __TP_GLIB_DBUS_H__
+#define __TP_GLIB_DBUS_H__
#include <telepathy-glib/telepathy-glib.h>
+#define _TP_IN_META_HEADER
+
/* common */
#include <telepathy-glib/gtypes.h>
#include <telepathy-glib/interfaces.h>
@@ -68,4 +69,5 @@
#include <telepathy-glib/svc-tls.h>
#undef _TP_IN_META_HEADER
-#endif
+
+#endif /* __TP_GLIB_DBUS_H__ */
diff --git a/telepathy-glib/telepathy-glib.h b/telepathy-glib/telepathy-glib.h
index a150ad5..6435c64 100644
--- a/telepathy-glib/telepathy-glib.h
+++ b/telepathy-glib/telepathy-glib.h
@@ -20,7 +20,8 @@
#ifndef __TP_GLIB_H__
#define __TP_GLIB_H__
-#define __TP_IN_GLIB_H__
+
+#define _TP_IN_META_HEADER
#include <telepathy-glib/enums.h>
#include <telepathy-glib/errors.h>
@@ -123,5 +124,6 @@
#include <telepathy-glib/svc-generic.h>
#include <telepathy-glib/svc-client.h>
-#undef __TP_IN_GLIB_H__
+#undef _TP_IN_META_HEADER
+
#endif /* __TP_GLIB_H__ */
More information about the telepathy-commits
mailing list