aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_decoder.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/run_decoder.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx
index 7db8dde22..56ef2068d 100644
--- a/test/run_decoder.cxx
+++ b/test/run_decoder.cxx
@@ -29,7 +29,9 @@
#include "Log.hxx"
#include "stdbin.h"
+#ifdef HAVE_GLIB
#include <glib.h>
+#endif
#include <assert.h>
#include <unistd.h>
@@ -192,9 +194,11 @@ int main(int argc, char **argv)
decoder_name = argv[1];
decoder.uri = argv[2];
+#ifdef HAVE_GLIB
#if !GLIB_CHECK_VERSION(2,32,0)
g_thread_init(NULL);
#endif
+#endif
g_log_set_default_handler(my_log_func, NULL);