mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-15 01:08:30 +00:00
avformat/file: add S_IFBLK/S_ISBLK compatability macro
They are not available on Windows. Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
parent
379e43e6ec
commit
e30bf5acee
1 changed files with 18 additions and 0 deletions
|
@ -68,6 +68,24 @@
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* S_ISREG not available on Windows */
|
||||||
|
#ifndef S_ISREG
|
||||||
|
# ifdef S_IFREG
|
||||||
|
# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
|
||||||
|
# else
|
||||||
|
# define S_ISREG(m) 0
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* S_ISBLK not available on Windows */
|
||||||
|
#ifndef S_ISBLK
|
||||||
|
# ifdef S_IFBLK
|
||||||
|
# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
|
||||||
|
# else
|
||||||
|
# define S_ISBLK(m) 0
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* standard file protocol */
|
/* standard file protocol */
|
||||||
|
|
||||||
typedef struct FileContext {
|
typedef struct FileContext {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue