summaryrefslogtreecommitdiff
path: root/gobject/gvaluearray.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-11-18 00:38:48 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-11-18 00:38:48 +0000
commit5852eace661bf5411e091a792d47e67fb7fd352e (patch)
tree792495709c48394b20f693c1035150210c547ac1 /gobject/gvaluearray.h
parent9d3cee6ac30121aa67d523e63892fb00dc77cd9e (diff)
downloadglib-5852eace661bf5411e091a792d47e67fb7fd352e.tar.gz
Include gtypes.h not gobject/gtype.h
Sat Nov 17 14:10:35 2001 Owen Taylor <otaylor@redhat.com> * glib/gbsearcharray.h: Include gtypes.h not gobject/gtype.h * glib/glib-object.h gobject/*.h: Prevent headers from being included directly except when compiling GObject. * gobject/gvaluecollector.h: Include glib-object.h so that this file can be included directly, since we don't include it _from_ glib-object.h. * gobject/gtype.c: Remove struct _GValue hack since we now include glib/gvaluecollector.h which simply pulls in glib-object.h.
Diffstat (limited to 'gobject/gvaluearray.h')
-rw-r--r--gobject/gvaluearray.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gobject/gvaluearray.h b/gobject/gvaluearray.h
index a24273175..456962e3a 100644
--- a/gobject/gvaluearray.h
+++ b/gobject/gvaluearray.h
@@ -21,6 +21,9 @@
#ifndef __G_VALUE_ARRAY_H__
#define __G_VALUE_ARRAY_H__
+#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
+#error "Only <glib-object.h> can be included directly."
+#endif
#include <gobject/gvalue.h>