mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 11:26:16 +01:00
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:
parent
2b391940c0
commit
8f340e2d75
@ -36,6 +36,7 @@
|
||||
#include "gmessages.h"
|
||||
#include "gstrfuncs.h"
|
||||
#include "gatomic.h"
|
||||
#include "gthread.h"
|
||||
|
||||
/**
|
||||
* SECTION:gregex
|
||||
|
@ -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__ */
|
||||
|
Loading…
Reference in New Issue
Block a user