configure.ac: require GLib 2.32 (if enabled)
Since version 2.32, g_thread_init() is deprecated and a no-op. Let's upgrade that (optional) dependency so we can remove all those g_thread_init() calls.
This commit is contained in:
@@ -30,10 +30,6 @@
|
||||
#include "fs/Path.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#include <glib.h>
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -57,14 +53,6 @@ main(int argc, char **argv)
|
||||
const char *plugin_name = argv[1];
|
||||
const Path path = Path::FromFS(argv[2]);
|
||||
|
||||
/* initialize GLib */
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#if !GLIB_CHECK_VERSION(2,32,0)
|
||||
g_thread_init(NULL);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* initialize MPD */
|
||||
|
||||
config_global_init();
|
||||
|
Reference in New Issue
Block a user