diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-06-29 21:17:43 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-07-01 16:01:31 +0300 |
commit | bac02200267495741e85db90607186ce4e0593b3 (patch) | |
tree | d01cd65d0019a7be916c3c8a5d9f4780f91afdb1 /butl/process.cxx | |
parent | e0b126d8c7f691856ec4d80bb57cb1ba5c71fd69 (diff) |
Port to MSVC
Diffstat (limited to 'butl/process.cxx')
-rw-r--r-- | butl/process.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/butl/process.cxx b/butl/process.cxx index aaab915..e67e12e 100644 --- a/butl/process.cxx +++ b/butl/process.cxx @@ -32,6 +32,15 @@ using namespace std; using namespace butl::win32; #endif +#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 STDIN_FILENO 0 +# define STDOUT_FILENO 1 +# define STDERR_FILENO 2 +#endif // _MSC_VER + namespace butl { class auto_fd |