From 8f340e2d75020991931d867b569137cb984ee233 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 23 Sep 2011 11:27:45 +0800 Subject: [PATCH] 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 --- glib/gregex.c | 1 + glib/gthreadprivate.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/glib/gregex.c b/glib/gregex.c index 74a2b0fa3..f8b870159 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 dd2340215..e98647e2a 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__ */