From: Ryan Lortie Date: Sat, 30 Jan 2010 04:56:04 +0000 (-0500) Subject: don't #include from other public headers X-Git-Tag: 2.23.3~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d55cfb51e03f4ba23191df4625ca62d3624652e;p=platform%2Fupstream%2Fglib.git don't #include from other public headers fix up some problems that were hidden by that --- diff --git a/glib/glib.symbols b/glib/glib.symbols index ddf7a2e..63b2b7b 100644 --- a/glib/glib.symbols +++ b/glib/glib.symbols @@ -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__) diff --git a/glib/gtestutils.c b/glib/gtestutils.c index a0bedbd..a6888de 100644 --- a/glib/gtestutils.c +++ b/glib/gtestutils.c @@ -19,6 +19,7 @@ */ #include "config.h" #include "gtestutils.h" +#include #include "galias.h" #include #ifdef G_OS_UNIX diff --git a/glib/gtestutils.h b/glib/gtestutils.h index ac1ed28..18f1ede 100644 --- a/glib/gtestutils.h +++ b/glib/gtestutils.h @@ -25,7 +25,11 @@ #ifndef __G_TEST_UTILS_H__ #define __G_TEST_UTILS_H__ -#include +#include +#include +#include +#include +#include G_BEGIN_DECLS diff --git a/glib/gurifuncs.c b/glib/gurifuncs.c index 40f9749..b4180b7 100644 --- a/glib/gurifuncs.c +++ b/glib/gurifuncs.c @@ -22,6 +22,7 @@ #include "config.h" #include "gurifuncs.h" +#include #include "string.h" #include "galias.h" diff --git a/glib/gurifuncs.h b/glib/gurifuncs.h index bcdeed9..bbc8f88 100644 --- a/glib/gurifuncs.h +++ b/glib/gurifuncs.h @@ -27,7 +27,7 @@ #ifndef __G_URI_FUNCS_H__ #define __G_URI_FUNCS_H__ -#include +#include G_BEGIN_DECLS diff --git a/glib/gvarianttype.c b/glib/gvarianttype.c index 8a773df..6a43fe2 100644 --- a/glib/gvarianttype.c +++ b/glib/gvarianttype.c @@ -23,6 +23,7 @@ #include "gvarianttype.h" #include +#include #include