[glib] push G_THREADS_MANDATORY over the cliff
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] push G_THREADS_MANDATORY over the cliff
- Date: Mon, 17 Oct 2011 02:01:48 +0000 (UTC)
commit b0ab7aba6bf2d70e0546f85091d76d9f83174ce8
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Oct 16 21:59:55 2011 -0400
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.
gio/Makefile.am | 2 --
glib/Makefile.am | 1 -
glib/deprecated/gthread.h | 6 +-----
gobject/Makefile.am | 2 --
4 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/gio/Makefile.am b/gio/Makefile.am
index 698fa92..b715e3c 100644
--- a/gio/Makefile.am
+++ b/gio/Makefile.am
@@ -37,8 +37,6 @@ AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"GLib-GIO\" \
$(gmodule_INCLUDES) \
$(GLIB_DEBUG_FLAGS) \
- -DG_THREADS_MANDATORY \
- -DG_DISABLE_DEPRECATED \
-DGIO_COMPILATION \
-DGIO_MODULE_DIR=\"$(GIO_MODULE_DIR)\"
diff --git a/glib/Makefile.am b/glib/Makefile.am
index 22dbe4d..b9ad6b5 100644
--- a/glib/Makefile.am
+++ b/glib/Makefile.am
@@ -51,7 +51,6 @@ AM_CPPFLAGS = \
$(pcre_inc) \
-DG_LOG_DOMAIN=\"GLib\" \
$(GLIB_DEBUG_FLAGS) \
- -DG_DISABLE_DEPRECATED \
-DGLIB_COMPILATION \
-DPCRE_STATIC
diff --git a/glib/deprecated/gthread.h b/glib/deprecated/gthread.h
index 6dc0b7f..095ecc2 100644
--- a/glib/deprecated/gthread.h
+++ b/glib/deprecated/gthread.h
@@ -265,11 +265,7 @@ gboolean g_thread_get_initialized (void);
GLIB_VAR gboolean g_threads_got_initialized;
-#if defined(G_THREADS_MANDATORY)
-#define g_thread_supported() 1
-#else
-#define g_thread_supported() (g_threads_got_initialized)
-#endif
+#define g_thread_supported() (1)
GLIB_DEPRECATED
GMutex * g_mutex_new (void);
diff --git a/gobject/Makefile.am b/gobject/Makefile.am
index 7e02c83..5c84699 100644
--- a/gobject/Makefile.am
+++ b/gobject/Makefile.am
@@ -13,8 +13,6 @@ AM_CPPFLAGS = \
-DG_LOG_DOMAIN=\"GLib-GObject\" \
$(gthread_INCLUDES) \
$(GLIB_DEBUG_FLAGS) \
- -DG_THREADS_MANDATORY \
- -DG_DISABLE_DEPRECATED \
-DGOBJECT_COMPILATION
gobject.def: gobject.symbols
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]