make it possible to disable single-file includes by defining
[platform/upstream/glib.git] / glib / gregex.h
index c60b447..82080bd 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  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_REGEX_H__
 #define __G_REGEX_H__
 
@@ -236,5 +240,4 @@ gchar               **g_match_info_fetch_all        (const GMatchInfo    *match_info);
 
 G_END_DECLS
 
-
 #endif  /*  __G_REGEX_H__ */