test/DumpDatabase, ...: no g_thread_init() calls when GLib is disabled
This commit is contained in:
parent
a7b09d3d1c
commit
6cf1acfb48
@ -33,7 +33,9 @@
|
||||
#include "event/Loop.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#include <glib.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
using std::cout;
|
||||
@ -107,8 +109,10 @@ main(int argc, char **argv)
|
||||
|
||||
/* initialize GLib */
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#if !GLIB_CHECK_VERSION(2,32,0)
|
||||
g_thread_init(nullptr);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* initialize MPD */
|
||||
|
@ -28,7 +28,9 @@
|
||||
#include "util/Error.hxx"
|
||||
#include "Log.hxx"
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#include <glib.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
@ -50,8 +52,10 @@ int main(int argc, gcc_unused char **argv)
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#if !GLIB_CHECK_VERSION(2,32,0)
|
||||
g_thread_init(NULL);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
EventLoop event_loop;
|
||||
|
@ -30,7 +30,9 @@
|
||||
#include "fs/Path.hxx"
|
||||
#include "util/Error.hxx"
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#include <glib.h>
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
@ -57,8 +59,10 @@ main(int argc, char **argv)
|
||||
|
||||
/* initialize GLib */
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#if !GLIB_CHECK_VERSION(2,32,0)
|
||||
g_thread_init(NULL);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* initialize MPD */
|
||||
|
Loading…
Reference in New Issue
Block a user