don't #include <glib.h> from other public headers
authorRyan Lortie <desrt@desrt.ca>
Sat, 30 Jan 2010 04:56:04 +0000 (23:56 -0500)
committerRyan Lortie <desrt@desrt.ca>
Sat, 30 Jan 2010 05:01:26 +0000 (00:01 -0500)
fix up some problems that were hidden by that

glib/glib.symbols
glib/gtestutils.c
glib/gtestutils.h
glib/gurifuncs.c
glib/gurifuncs.h
glib/gvarianttype.c

index ddf7a2e..63b2b7b 100644 (file)
@@ -1259,8 +1259,6 @@ g_string_vprintf
  /* these are not internal, but we don't want to alias them */
 g_string_append_c
 #endif
-g_str_equal
-g_str_hash
 #endif
 #endif
 
@@ -1532,6 +1530,10 @@ g_double_hash
 g_direct_equal G_GNUC_CONST
 g_direct_hash G_GNUC_CONST
 #endif
+#if IN_FILE(__G_STRING_C__)
+g_str_equal
+g_str_hash
+#endif
 #endif
 
 #if IN_HEADER(__G_UTILS_H__)
index a0bedbd..a6888de 100644 (file)
@@ -19,6 +19,7 @@
  */
 #include "config.h"
 #include "gtestutils.h"
+#include <glib.h>
 #include "galias.h"
 #include <sys/types.h>
 #ifdef G_OS_UNIX
index ac1ed28..18f1ede 100644 (file)
 #ifndef __G_TEST_UTILS_H__
 #define __G_TEST_UTILS_H__
 
-#include <glib.h>
+#include <glib/gmessages.h>
+#include <glib/gstring.h>
+#include <glib/gtypes.h>
+#include <glib/gerror.h>
+#include <glib/gslist.h>
 
 G_BEGIN_DECLS
 
index 40f9749..b4180b7 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "config.h"
 #include "gurifuncs.h"
+#include <glib.h>
 #include "string.h"
 
 #include "galias.h"
index bcdeed9..bbc8f88 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef __G_URI_FUNCS_H__
 #define __G_URI_FUNCS_H__
 
-#include <glib.h>
+#include <glib/gtypes.h>
 
 G_BEGIN_DECLS
 
index 8a773df..6a43fe2 100644 (file)
@@ -23,6 +23,7 @@
 #include "gvarianttype.h"
 
 #include <glib/gtestutils.h>
+#include <glib/gstrfuncs.h>
 
 #include <string.h>