From ed7fe505b4d7c2e827ba8928e0e31577cf36e52b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Wed, 1 May 2024 23:28:25 +0200 Subject: [PATCH] common: define some bits for Windows SDK --- common/common.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 */