From 20f85745e7741141953cd9a6715db0d472f567d1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Jan 2013 18:33:37 +0100 Subject: require GLib 2.24 --- configure.ac | 4 ++-- src/DatabaseGlue.cxx | 1 - src/PlaylistFile.cxx | 2 -- src/PlaylistSave.cxx | 2 -- src/event/MultiSocketMonitor.hxx | 1 + src/glib_compat.h | 11 ----------- src/input/CurlInputPlugin.cxx | 1 - src/output/OssOutputPlugin.cxx | 1 - src/pcm_convert.c | 1 - src/utils.c | 1 - 10 files changed, 3 insertions(+), 22 deletions(-) diff --git a/configure.ac b/configure.ac index ca445880..19246980 100644 --- a/configure.ac +++ b/configure.ac @@ -472,8 +472,8 @@ AC_ARG_WITH(tremor-includes, dnl --------------------------------------------------------------------------- dnl Mandatory Libraries dnl --------------------------------------------------------------------------- -PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.16 gthread-2.0],, - [AC_MSG_ERROR([GLib 2.16 is required])]) +PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.24 gthread-2.0],, + [AC_MSG_ERROR([GLib 2.24 is required])]) if test x$GCC = xyes; then # suppress warnings in the GLib headers diff --git a/src/DatabaseGlue.cxx b/src/DatabaseGlue.cxx index 853e67b0..db7d4b9f 100644 --- a/src/DatabaseGlue.cxx +++ b/src/DatabaseGlue.cxx @@ -28,7 +28,6 @@ extern "C" { #include "db_error.h" #include "stats.h" -#include "glib_compat.h" } #include "DatabasePlugin.hxx" diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx index 278e521b..f8d924de 100644 --- a/src/PlaylistFile.cxx +++ b/src/PlaylistFile.cxx @@ -37,8 +37,6 @@ extern "C" { #include "uri.h" } -#include "glib_compat.h" - #include #include #include diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index 1ff6c856..96fb5b1c 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -31,8 +31,6 @@ extern "C" { #include "uri.h" } -#include "glib_compat.h" - #include void diff --git a/src/event/MultiSocketMonitor.hxx b/src/event/MultiSocketMonitor.hxx index 9d0e1502..bf0a221a 100644 --- a/src/event/MultiSocketMonitor.hxx +++ b/src/event/MultiSocketMonitor.hxx @@ -22,6 +22,7 @@ #include "check.h" #include "gcc.h" +#include "glib_compat.h" #include diff --git a/src/glib_compat.h b/src/glib_compat.h index 97d1fdc0..a16b9c6e 100644 --- a/src/glib_compat.h +++ b/src/glib_compat.h @@ -28,17 +28,6 @@ #include -#if !GLIB_CHECK_VERSION(2,18,0) - -static inline void -g_set_error_literal(GError **err, GQuark domain, gint code, - const gchar *message) -{ - g_set_error(err, domain, code, "%s", message); -} - -#endif - #if !GLIB_CHECK_VERSION(2,28,0) static inline gint64 diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index 550bcd0c..fe944b75 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -28,7 +28,6 @@ #include "event/MultiSocketMonitor.hxx" #include "event/Loop.hxx" #include "IOThread.hxx" -#include "glib_compat.h" #include diff --git a/src/output/OssOutputPlugin.cxx b/src/output/OssOutputPlugin.cxx index 5810825f..ace88b6f 100644 --- a/src/output/OssOutputPlugin.cxx +++ b/src/output/OssOutputPlugin.cxx @@ -22,7 +22,6 @@ #include "output_api.h" #include "mixer_list.h" #include "fd_util.h" -#include "glib_compat.h" #include diff --git a/src/pcm_convert.c b/src/pcm_convert.c index 32425143..1d8ae957 100644 --- a/src/pcm_convert.c +++ b/src/pcm_convert.c @@ -23,7 +23,6 @@ #include "pcm_format.h" #include "pcm_pack.h" #include "audio_format.h" -#include "glib_compat.h" #include #include diff --git a/src/utils.c b/src/utils.c index a2de3212..776813c4 100644 --- a/src/utils.c +++ b/src/utils.c @@ -19,7 +19,6 @@ #include "config.h" #include "utils.h" -#include "glib_compat.h" #include "conf.h" #include -- cgit v1.2.3