[glib] Add single-include guards to new headers
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add single-include guards to new headers
- Date: Sun, 6 Jun 2010 20:22:31 +0000 (UTC)
commit 2aca3b506a2405927a621bb37447dc96b2aa6174
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 6 16:20:21 2010 -0400
Add single-include guards to new headers
As pointed out by Christian Persch in bug 620173, all the new
gdbus and gsettings headers were missing these.
gio/gcredentials.h | 4 ++++
gio/gdbusaddress.h | 4 ++++
gio/gdbusauthobserver.h | 4 ++++
gio/gdbusconnection.h | 4 ++++
gio/gdbuserror.h | 4 ++++
gio/gdbusintrospection.h | 4 ++++
gio/gdbusmessage.h | 4 ++++
gio/gdbusmethodinvocation.h | 4 ++++
gio/gdbusnameowning.h | 4 ++++
gio/gdbusnamewatching.h | 4 ++++
gio/gdbusproxy.h | 4 ++++
gio/gdbusproxywatching.h | 4 ++++
gio/gdbusserver.h | 4 ++++
gio/gdbusutils.h | 4 ++++
gio/gsettings.h | 4 ++++
15 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/gio/gcredentials.h b/gio/gcredentials.h
index be1965f..e0d8fcd 100644
--- a/gio/gcredentials.h
+++ b/gio/gcredentials.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_CREDENTIALS_H__
#define __G_CREDENTIALS_H__
diff --git a/gio/gdbusaddress.h b/gio/gdbusaddress.h
index 389bd83..955c39e 100644
--- a/gio/gdbusaddress.h
+++ b/gio/gdbusaddress.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_ADDRESS_H__
#define __G_DBUS_ADDRESS_H__
diff --git a/gio/gdbusauthobserver.h b/gio/gdbusauthobserver.h
index b408365..f5f6385 100644
--- a/gio/gdbusauthobserver.h
+++ b/gio/gdbusauthobserver.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_AUTH_OBSERVER_H__
#define __G_DBUS_AUTH_OBSERVER_H__
diff --git a/gio/gdbusconnection.h b/gio/gdbusconnection.h
index 1055a58..1a9597c 100644
--- a/gio/gdbusconnection.h
+++ b/gio/gdbusconnection.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_CONNECTION_H__
#define __G_DBUS_CONNECTION_H__
diff --git a/gio/gdbuserror.h b/gio/gdbuserror.h
index 1451379..85e2f88 100644
--- a/gio/gdbuserror.h
+++ b/gio/gdbuserror.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_ERROR_H__
#define __G_DBUS_ERROR_H__
diff --git a/gio/gdbusintrospection.h b/gio/gdbusintrospection.h
index 3560ff3..fedfbf7 100644
--- a/gio/gdbusintrospection.h
+++ b/gio/gdbusintrospection.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_INTROSPECTION_H__
#define __G_DBUS_INTROSPECTION_H__
diff --git a/gio/gdbusmessage.h b/gio/gdbusmessage.h
index af3fdfd..f344f09 100644
--- a/gio/gdbusmessage.h
+++ b/gio/gdbusmessage.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_MESSAGE_H__
#define __G_DBUS_MESSAGE_H__
diff --git a/gio/gdbusmethodinvocation.h b/gio/gdbusmethodinvocation.h
index cb1d751..633226e 100644
--- a/gio/gdbusmethodinvocation.h
+++ b/gio/gdbusmethodinvocation.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_METHOD_INVOCATION_H__
#define __G_DBUS_METHOD_INVOCATION_H__
diff --git a/gio/gdbusnameowning.h b/gio/gdbusnameowning.h
index a1adc3f..85921bb 100644
--- a/gio/gdbusnameowning.h
+++ b/gio/gdbusnameowning.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_NAME_OWNING_H__
#define __G_DBUS_NAME_OWNING_H__
diff --git a/gio/gdbusnamewatching.h b/gio/gdbusnamewatching.h
index a424f43..5d410bc 100644
--- a/gio/gdbusnamewatching.h
+++ b/gio/gdbusnamewatching.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_NAME_WATCHING_H__
#define __G_DBUS_NAME_WATCHING_H__
diff --git a/gio/gdbusproxy.h b/gio/gdbusproxy.h
index 4868853..9279353 100644
--- a/gio/gdbusproxy.h
+++ b/gio/gdbusproxy.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_PROXY_H__
#define __G_DBUS_PROXY_H__
diff --git a/gio/gdbusproxywatching.h b/gio/gdbusproxywatching.h
index 37c88dd..3f9ccfb 100644
--- a/gio/gdbusproxywatching.h
+++ b/gio/gdbusproxywatching.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_PROXY_WATCHING_H__
#define __G_DBUS_PROXY_WATCHING_H__
diff --git a/gio/gdbusserver.h b/gio/gdbusserver.h
index 5822b9c..4878848 100644
--- a/gio/gdbusserver.h
+++ b/gio/gdbusserver.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_SERVER_H__
#define __G_DBUS_SERVER_H__
diff --git a/gio/gdbusutils.h b/gio/gdbusutils.h
index 4d8a7ab..b31dc75 100644
--- a/gio/gdbusutils.h
+++ b/gio/gdbusutils.h
@@ -20,6 +20,10 @@
* Author: David Zeuthen <davidz redhat com>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_DBUS_UTILS_H__
#define __G_DBUS_UTILS_H__
diff --git a/gio/gsettings.h b/gio/gsettings.h
index 8f0c0a5..4b108b2 100644
--- a/gio/gsettings.h
+++ b/gio/gsettings.h
@@ -19,6 +19,10 @@
* Author: Ryan Lortie <desrt desrt ca>
*/
+#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
+#error "Only <gio/gio.h> can be included directly."
+#endif
+
#ifndef __G_SETTINGS_H__
#define __G_SETTINGS_H__
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]