[glib] Fix warning/error C4013 (implicit declarations)



commit 8f340e2d75020991931d867b569137cb984ee233
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Sep 23 11:27:45 2011 +0800

    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(+), 0 deletions(-)
---
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__ */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]