[vlc-commits] [Git][videolan/vlc][master] vlc_fixups: use the default defines for S_ISDIR/S_ISREG
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Jan 21 10:08:39 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
9d840d90 by Steve Lhomme at 2023-01-21T09:49:27+00:00
vlc_fixups: use the default defines for S_ISDIR/S_ISREG
The defines without the underscore are not set by default in the Windows SDK.
- - - - -
1 changed file:
- include/vlc_fixups.h
Changes:
=====================================
include/vlc_fixups.h
=====================================
@@ -35,8 +35,8 @@
#define S_IWUSR _S_IWRITE
#define S_IRUSR _S_IREAD
#define S_IFIFO _S_IFIFO
-#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
-#define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
+#define S_ISDIR(m) (((m) & _S_IFMT) == _S_IFDIR)
+#define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
#define S_ISBLK(m) (0)
// same type as statXXX structures st_mode field
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9d840d906feb903a6b9142302d9c9caca40eed7b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/9d840d906feb903a6b9142302d9c9caca40eed7b
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list