diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-21 12:35:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-08-21 12:35:43 +0200 |
commit | ea3b7793fa039aa166212d57ea816b83f678a147 (patch) | |
tree | 2de10a576591b6b01de9ce22a73e73fffc20cc96 /butl/filesystem.cxx | |
parent | c51778aac8ed87de70b5cd74beb2af7421e35e9e (diff) |
Cosmetic change
Diffstat (limited to 'butl/filesystem.cxx')
-rw-r--r-- | butl/filesystem.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/butl/filesystem.cxx b/butl/filesystem.cxx index a807f4c..9db8814 100644 --- a/butl/filesystem.cxx +++ b/butl/filesystem.cxx @@ -16,6 +16,11 @@ # include <direct.h> // _mkdir(), _rmdir() # include <sys/types.h> // _stat # include <sys/stat.h> // _stat(), S_I* + +# 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) +# endif #endif #include <errno.h> // errno, E* @@ -27,11 +32,6 @@ using namespace std; -#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) -#endif - namespace butl { bool |