diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-03-18 15:53:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-03-18 15:53:49 +0200 |
commit | e283b08481cfec9aa55b3ddbf369d632c7aa7b0f (patch) | |
tree | 3186eb9775f0cbd00fdc6436a05e4b73546652e5 /libbutl/filesystem.cxx | |
parent | 4e2024e2e6b8309f2db6548e04e920f565a84b0b (diff) |
Add fdstat()fdstat
Diffstat (limited to 'libbutl/filesystem.cxx')
-rw-r--r-- | libbutl/filesystem.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libbutl/filesystem.cxx b/libbutl/filesystem.cxx index 2147c6f..787747d 100644 --- a/libbutl/filesystem.cxx +++ b/libbutl/filesystem.cxx @@ -24,13 +24,14 @@ # include <sys/types.h> // _stat # include <sys/stat.h> // _stat(), S_I* -# include <cwchar> // mbsrtowcs(), wcsrtombs(), mbstate_t -# include <cstring> // strncmp() - # ifdef _MSC_VER // Unlikely to be fixed in newer versions. # define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) # define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) # endif + +# include <cwchar> // mbsrtowcs(), wcsrtombs(), mbstate_t +# include <cstring> // strncmp() #endif #include <cassert> |