make it possible to disable single-file includes by defining
[platform/upstream/glib.git] / glib / goption.h
index 908e531..d678e97 100644 (file)
  * Boston, MA 02111-1307, USA.
  */
 
+#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__G_LIB_H__) && !defined (GLIB_COMPILATION)
+#error "Only <glib.h> can be included directly."
+#endif
+
 #ifndef __G_OPTION_H__
 #define __G_OPTION_H__
 
@@ -154,7 +158,6 @@ void          g_option_group_set_translate_func     (GOptionGroup       *group,
 void          g_option_group_set_translation_domain (GOptionGroup       *group,
                                                     const gchar        *domain);
 
-
 G_END_DECLS
 
 #endif /* __G_OPTION_H__ */