mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-05 06:13:43 +00:00
os_support: Add fallback definitions for stat flags
Mingw headers provide similar defines already (unconditional #defines, without any #undef or #ifdef around it), while MSVC doesn't have them. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
cab2eb87f9
commit
5a608a239b
@ -29,6 +29,8 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#if defined(__MINGW32__) && !defined(__MINGW32CE__)
|
#if defined(__MINGW32__) && !defined(__MINGW32CE__)
|
||||||
# include <fcntl.h>
|
# include <fcntl.h>
|
||||||
# define lseek(f,p,w) _lseeki64((f), (p), (w))
|
# define lseek(f,p,w) _lseeki64((f), (p), (w))
|
||||||
@ -55,6 +57,13 @@ static inline int is_dos_path(const char *path)
|
|||||||
#define SHUT_RD SD_RECEIVE
|
#define SHUT_RD SD_RECEIVE
|
||||||
#define SHUT_WR SD_SEND
|
#define SHUT_WR SD_SEND
|
||||||
#define SHUT_RDWR SD_BOTH
|
#define SHUT_RDWR SD_BOTH
|
||||||
|
|
||||||
|
#ifndef S_IRUSR
|
||||||
|
#define S_IRUSR S_IREAD
|
||||||
|
#endif
|
||||||
|
#ifndef S_IWUSR
|
||||||
|
#define S_IWUSR S_IWRITE
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(__MINGW32CE__)
|
#if defined(_WIN32) && !defined(__MINGW32CE__)
|
||||||
|
Loading…
Reference in New Issue
Block a user