summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2013-04-01 19:57:13 +1100
committerErik de Castro Lopo <erikd@mega-nerd.com>2013-04-01 19:57:13 +1100
commit2199d086921eb37d249cae0731f334556ec6209d (patch)
tree5add730a244929f20e8863a8afd6efbd9bc2acbe /include
parentb3c3e2ac4fcac9d9b178ad240976634d52d5eece (diff)
downloadflac-2199d086921eb37d249cae0731f334556ec6209d.tar.gz
Enable utf8 I/O stuff when compiling with MinGW.
Diffstat (limited to 'include')
-rw-r--r--include/share/compat.h3
-rw-r--r--include/share/win_utf8_io.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/share/compat.h b/include/share/compat.h
index 214990c2..cf83bfe5 100644
--- a/include/share/compat.h
+++ b/include/share/compat.h
@@ -141,7 +141,8 @@
# endif
#endif /* defined _MSC_VER */
-#ifdef FLAC__STRINGS_IN_UTF8 /* all char* strings are in UTF-8 format. Added to support Unicode files on Windows */
+#ifdef _WIN32
+/* All char* strings are in UTF-8 format. Added to support Unicode files on Windows */
#include "share/win_utf8_io.h"
#define flac_printf printf_utf8
diff --git a/include/share/win_utf8_io.h b/include/share/win_utf8_io.h
index caf7cf92..598f187f 100644
--- a/include/share/win_utf8_io.h
+++ b/include/share/win_utf8_io.h
@@ -1,4 +1,4 @@
-#ifdef FLAC__STRINGS_IN_UTF8
+#ifdef _WIN32
#ifndef flac__win_utf8_io_h
#define flac__win_utf8_io_h