diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2024-05-01 23:28:25 +0200 |
---|---|---|
committer | Kacper Michajłow <kasper93@gmail.com> | 2024-05-06 22:01:17 +0200 |
commit | ed7fe505b4d7c2e827ba8928e0e31577cf36e52b (patch) | |
tree | 91a01643b7480b16030f48208a25e4d11193d903 /common | |
parent | 3ea684e7ef3eeb544cd5461953b6315f7213a95d (diff) | |
download | mpv-ed7fe505b4d7c2e827ba8928e0e31577cf36e52b.tar.bz2 mpv-ed7fe505b4d7c2e827ba8928e0e31577cf36e52b.tar.xz |
common: define some bits for Windows SDK
Diffstat (limited to 'common')
-rw-r--r-- | common/common.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/common/common.h b/common/common.h index cfd610bbf3..7466ea2d61 100644 --- a/common/common.h +++ b/common/common.h @@ -171,4 +171,25 @@ char **mp_dup_str_array(void *tctx, char **s); abort(); \ } while (0) +#ifdef _MSC_VER +#define strncasecmp _strnicmp +#define strcasecmp _stricmp + +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif +#ifndef STDOUT_FILENO +#define STDOUT_FILENO 1 +#endif +#ifndef STDERR_FILENO +#define STDERR_FILENO 2 +#endif +#ifndef O_NONBLOCK +#define O_NONBLOCK 0 +#endif + +typedef long long ssize_t; +typedef unsigned short mode_t; +#endif + #endif /* MPLAYER_MPCOMMON_H */ |