summaryrefslogtreecommitdiff
path: root/gio/gdbuserror.h
diff options
context:
space:
mode:
Diffstat (limited to 'gio/gdbuserror.h')
-rw-r--r--gio/gdbuserror.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/gdbuserror.h b/gio/gdbuserror.h
index 145137917..85e2f8815 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__