Fix warning/error C4013 (implicit declarations)
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 23 Sep 2011 03:27:45 +0000 (11:27 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Sun, 25 Sep 2011 01:07:59 +0000 (09:07 +0800)
-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
glib/gthreadprivate.h

index 74a2b0f..f8b8701 100644 (file)
@@ -36,6 +36,7 @@
 #include "gmessages.h"
 #include "gstrfuncs.h"
 #include "gatomic.h"
+#include "gthread.h"
 
 /**
  * SECTION:gregex
index dd23402..e98647e 100644 (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__ */