diff options
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 |