aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/wildmidi_decoder_plugin.c
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2012-06-03 13:00:11 +0600
committerMax Kellermann <max@duempel.org>2012-06-12 19:31:19 +0200
commit25d053cbf288fb966526c554bea6158ef5c38202 (patch)
treeceb3bda54406eec336aedf138ab326e966077a5f /src/decoder/wildmidi_decoder_plugin.c
parent055257a210015a623062ad3ad3cb8a40fbc6839f (diff)
downloadmpd-25d053cbf288fb966526c554bea6158ef5c38202.tar.gz
mpd-25d053cbf288fb966526c554bea6158ef5c38202.tar.xz
mpd-25d053cbf288fb966526c554bea6158ef5c38202.zip
Work around incorrect g_file_test() behavior on Win32
g_file_test is redefined to be g_file_test_utf8 and thus can't handle non-ASCII characters. This fix adds simple wrapper (taken from glib) that fixes encoding and calls g_file_test_utf8. All required inclusions of glib_compat.h are added as well.
Diffstat (limited to '')
-rw-r--r--src/decoder/wildmidi_decoder_plugin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decoder/wildmidi_decoder_plugin.c b/src/decoder/wildmidi_decoder_plugin.c
index 66e6c61cf..5eb0638da 100644
--- a/src/decoder/wildmidi_decoder_plugin.c
+++ b/src/decoder/wildmidi_decoder_plugin.c
@@ -19,6 +19,7 @@
#include "config.h"
#include "decoder_api.h"
+#include "glib_compat.h"
#include <glib.h>