From: Chun-wei Fan Date: Fri, 23 Sep 2011 03:27:45 +0000 (+0800) Subject: Fix warning/error C4013 (implicit declarations) X-Git-Tag: 2.31.0~362 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f340e2d75020991931d867b569137cb984ee233;p=platform%2Fupstream%2Fglib.git Fix warning/error C4013 (implicit declarations) -Include gthread.h in gregex.c as g_once_init_enter and g_once_init_leave are used. -Define prototype for g_thread_DllMain in gthreadprivate.h for Windows --- diff --git a/glib/gregex.c b/glib/gregex.c index 74a2b0f..f8b8701 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -36,6 +36,7 @@ #include "gmessages.h" #include "gstrfuncs.h" #include "gatomic.h" +#include "gthread.h" /** * SECTION:gregex diff --git a/glib/gthreadprivate.h b/glib/gthreadprivate.h index dd23402..e98647e 100644 --- a/glib/gthreadprivate.h +++ b/glib/gthreadprivate.h @@ -67,6 +67,10 @@ struct _GPrivate G_GNUC_INTERNAL void g_private_init (GPrivate *key, GDestroyNotify notify); +#ifdef G_OS_WIN32 +G_GNUC_INTERNAL void g_thread_DllMain (void); +#endif + G_END_DECLS #endif /* __G_THREADPRIVATE_H__ */