diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-12 09:12:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-02-12 09:12:57 +0200 |
commit | bca10c3106b5945203baa300f0a260185deb1c4d (patch) | |
tree | 4d53505d14cf718105e1405b92937975c3150146 /cutl/fs | |
parent | 4b521ea90b2b770355ce98916f5499d57db7c2f8 (diff) |
Add fallback PATH_MAX value of 4096
Diffstat (limited to 'cutl/fs')
-rw-r--r-- | cutl/fs/path.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cutl/fs/path.cxx b/cutl/fs/path.cxx index 87b7f5f..b106ea0 100644 --- a/cutl/fs/path.cxx +++ b/cutl/fs/path.cxx @@ -11,6 +11,12 @@ # include <unistd.h> // getcwd, chdir #endif +#ifndef _WIN32 +# ifndef PATH_MAX +# define PATH_MAX 4096 +# endif +#endif + #include <cutl/fs/path.hxx> namespace cutl |