make it possible to disable single-file includes by defining
[platform/upstream/glib.git] / glib / galloca.h
index baf8009..34c75e6 100644 (file)
  * Modified by the GLib Team and others 1997-2000.  See the AUTHORS
  * file for a list of people on the GLib Team.  See the ChangeLog
  * files for a list of changes.  These files are distributed with
- * GLib at ftp://ftp.gtk.org/pub/gtk/. 
+ * GLib at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__G_LIB_H__) && !defined (GLIB_COMPILATION)
+#error "Only <glib.h> can be included directly."
+#endif
+
 #ifndef __G_ALLOCA_H__
 #define __G_ALLOCA_H__
 
@@ -56,5 +60,4 @@ G_END_DECLS
 #define g_alloca(size)          alloca (size)
 #define g_newa(struct_type, n_structs) ((struct_type*) g_alloca (sizeof (struct_type) * (gsize) (n_structs)))
 
-
 #endif /* __G_ALLOCA_H__ */