mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-27 20:52:12 +01:00
push G_THREADS_MANDATORY over the cliff
This was used as an optimisation for the macro hackery that used to live in gthread.h. If a particular library or program knew that it could rely on thread support being enabled, it would allow for static evaluation of conditionals in some of those macros. Since the macros are dead and thread support is now always-on, we can get rid of this bit of legacy.
This commit is contained in:
parent
b076020719
commit
b0ab7aba6b
@ -37,8 +37,6 @@ AM_CPPFLAGS = \
|
|||||||
-DG_LOG_DOMAIN=\"GLib-GIO\" \
|
-DG_LOG_DOMAIN=\"GLib-GIO\" \
|
||||||
$(gmodule_INCLUDES) \
|
$(gmodule_INCLUDES) \
|
||||||
$(GLIB_DEBUG_FLAGS) \
|
$(GLIB_DEBUG_FLAGS) \
|
||||||
-DG_THREADS_MANDATORY \
|
|
||||||
-DG_DISABLE_DEPRECATED \
|
|
||||||
-DGIO_COMPILATION \
|
-DGIO_COMPILATION \
|
||||||
-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
|
-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
|
||||||
|
|
||||||
|
@ -51,7 +51,6 @@ AM_CPPFLAGS = \
|
|||||||
$(pcre_inc) \
|
$(pcre_inc) \
|
||||||
-DG_LOG_DOMAIN=\"GLib\" \
|
-DG_LOG_DOMAIN=\"GLib\" \
|
||||||
$(GLIB_DEBUG_FLAGS) \
|
$(GLIB_DEBUG_FLAGS) \
|
||||||
-DG_DISABLE_DEPRECATED \
|
|
||||||
-DGLIB_COMPILATION \
|
-DGLIB_COMPILATION \
|
||||||
-DPCRE_STATIC
|
-DPCRE_STATIC
|
||||||
|
|
||||||
|
@ -265,11 +265,7 @@ gboolean g_thread_get_initialized (void);
|
|||||||
|
|
||||||
GLIB_VAR gboolean g_threads_got_initialized;
|
GLIB_VAR gboolean g_threads_got_initialized;
|
||||||
|
|
||||||
#if defined(G_THREADS_MANDATORY)
|
#define g_thread_supported() (1)
|
||||||
#define g_thread_supported() 1
|
|
||||||
#else
|
|
||||||
#define g_thread_supported() (g_threads_got_initialized)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
GLIB_DEPRECATED
|
GLIB_DEPRECATED
|
||||||
GMutex * g_mutex_new (void);
|
GMutex * g_mutex_new (void);
|
||||||
|
@ -13,8 +13,6 @@ AM_CPPFLAGS = \
|
|||||||
-DG_LOG_DOMAIN=\"GLib-GObject\" \
|
-DG_LOG_DOMAIN=\"GLib-GObject\" \
|
||||||
$(gthread_INCLUDES) \
|
$(gthread_INCLUDES) \
|
||||||
$(GLIB_DEBUG_FLAGS) \
|
$(GLIB_DEBUG_FLAGS) \
|
||||||
-DG_THREADS_MANDATORY \
|
|
||||||
-DG_DISABLE_DEPRECATED \
|
|
||||||
-DGOBJECT_COMPILATION
|
-DGOBJECT_COMPILATION
|
||||||
|
|
||||||
gobject.def: gobject.symbols
|
gobject.def: gobject.symbols
|
||||||
|
Loading…
x
Reference in New Issue
Block a user