Add single include guards to gvariant[type].h
authorRyan Lortie <desrt@desrt.ca>
Tue, 22 Jun 2010 12:09:27 +0000 (08:09 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 22 Jun 2010 12:10:05 +0000 (08:10 -0400)
glib/gvariant.h
glib/gvarianttype.h

index 24d9f40..aa270f6 100644 (file)
  * Author: Ryan Lortie <desrt@desrt.ca>
  */
 
+#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
+#error "Only <glib.h> can be included directly."
+#endif
+
 #ifndef __G_VARIANT_H__
 #define __G_VARIANT_H__
 
index 1a477d6..2203ccb 100644 (file)
  * Author: Ryan Lortie <desrt@desrt.ca>
  */
 
+#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
+#error "Only <glib.h> can be included directly."
+#endif
+
 #ifndef __G_VARIANT_TYPE_H__
 #define __G_VARIANT_TYPE_H__