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
This commit is contained in:
Chun-wei Fan 2011-09-23 11:27:45 +08:00
parent 2b391940c0
commit 8f340e2d75
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,7 @@
#include "gmessages.h"
#include "gstrfuncs.h"
#include "gatomic.h"
#include "gthread.h"
/**
* SECTION:gregex

View File

@ -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__ */