From e283b08481cfec9aa55b3ddbf369d632c7aa7b0f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Mar 2021 15:53:49 +0200 Subject: Add fdstat() --- libbutl/filesystem.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbutl/filesystem.cxx') 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 // _stat # include // _stat(), S_I* -# include // mbsrtowcs(), wcsrtombs(), mbstate_t -# include // 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 // mbsrtowcs(), wcsrtombs(), mbstate_t +# include // strncmp() #endif #include -- cgit v1.1