diff options
author | wm4 <wm4@nowhere> | 2017-11-12 16:20:24 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-11-12 16:43:34 +0100 |
commit | 41cefe3e1f12b1d74355fad83f9d56091f278c05 (patch) | |
tree | 1e75071732edfea6a83863d073204255dfa5e634 | |
parent | 987291d0427518ec85b8113bb1d91dfdc2ef6149 (diff) | |
download | mpv-41cefe3e1f12b1d74355fad83f9d56091f278c05.tar.bz2 mpv-41cefe3e1f12b1d74355fad83f9d56091f278c05.tar.xz |
stream_libarchive, osdep: use stubs for POSIX 2008 locale on MinGW
-rw-r--r-- | osdep/io.h | 7 | ||||
-rw-r--r-- | stream/stream_libarchive.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/osdep/io.h b/osdep/io.h index 55173ea1d7..666928892d 100644 --- a/osdep/io.h +++ b/osdep/io.h @@ -27,6 +27,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> +#include <locale.h> #if HAVE_GLOB_POSIX #include <glob.h> @@ -192,6 +193,12 @@ int msync(void *addr, size_t length, int flags); #define glob(...) mp_glob(__VA_ARGS__) #define globfree(...) mp_globfree(__VA_ARGS__) +// There is not anything that helps with this on Windows. +#define locale_t int +#define newlocale(a, b, c) 1 +#define uselocale(a) 1 +#define freelocale(a) + #else /* __MINGW32__ */ #include <sys/mman.h> diff --git a/stream/stream_libarchive.h b/stream/stream_libarchive.h index 939d6fa65a..56e86a6baa 100644 --- a/stream/stream_libarchive.h +++ b/stream/stream_libarchive.h @@ -1,4 +1,5 @@ #include <locale.h> +#include "osdep/io.h" struct mp_log; |