mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-10 03:04:05 +02: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:
@@ -36,6 +36,7 @@
|
|||||||
#include "gmessages.h"
|
#include "gmessages.h"
|
||||||
#include "gstrfuncs.h"
|
#include "gstrfuncs.h"
|
||||||
#include "gatomic.h"
|
#include "gatomic.h"
|
||||||
|
#include "gthread.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SECTION:gregex
|
* SECTION:gregex
|
||||||
|
@@ -67,6 +67,10 @@ struct _GPrivate
|
|||||||
G_GNUC_INTERNAL void g_private_init (GPrivate *key,
|
G_GNUC_INTERNAL void g_private_init (GPrivate *key,
|
||||||
GDestroyNotify notify);
|
GDestroyNotify notify);
|
||||||
|
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
G_GNUC_INTERNAL void g_thread_DllMain (void);
|
||||||
|
#endif
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __G_THREADPRIVATE_H__ */
|
#endif /* __G_THREADPRIVATE_H__ */
|
||||||
|
Reference in New Issue
Block a user