From 8315dbfe77cef9f0592eb412b0b122c5a73307a8 Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Sun, 30 Oct 2011 18:46:08 +0000 Subject: use GLIB_CHECK_VERSION instead of a Makefile hack --- Makefile | 5 ----- src/uzbl-core.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 83be153..00a8f89 100644 --- a/Makefile +++ b/Makefile @@ -21,11 +21,6 @@ endif REQ_PKGS += libsoup-2.4 gthread-2.0 glib-2.0 -# Check for a new glib version -ifeq ($(shell pkg-config --exists "glib-2.0 >= 2.31.0" && echo 1),1) - CPPFLAGS += -DUZBL_GTHREAD_NO_INIT -endif - ARCH:=$(shell uname -m) COMMIT_HASH:=$(shell ./misc/hash.sh) diff --git a/src/uzbl-core.c b/src/uzbl-core.c index f756740..c3bc2dd 100644 --- a/src/uzbl-core.c +++ b/src/uzbl-core.c @@ -962,7 +962,7 @@ initialize(int argc, char** argv) { if (uzbl.state.socket_id || uzbl.state.embed) uzbl.state.plug_mode = TRUE; -#ifndef UZBL_GTHREAD_NO_INIT +#if !GLIB_CHECK_VERSION(2, 31, 0) if (!g_thread_supported()) g_thread_init(NULL); #endif -- cgit v1.2.3