mirror of https://github.com/mpv-player/mpv
stream_libarchive, osdep: use stubs for POSIX 2008 locale on MinGW
This commit is contained in:
parent
987291d042
commit
41cefe3e1f
|
@ -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>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <locale.h>
|
||||
#include "osdep/io.h"
|
||||
|
||||
struct mp_log;
|
||||
|
||||
|
|
Loading…
Reference in New Issue