use FILENAME_MAX instead of PATH_MAX for compat

develop
Myk Taylor 2020-07-16 08:33:23 -07:00
parent 1ae341b637
commit bb1fcff410
1 changed files with 1 additions and 1 deletions

@ -104,7 +104,7 @@ bool Filesystem::mkdir_recursive (std::string path)
std::replace(path.begin(), path.end(), '\\', '/'); std::replace(path.begin(), path.end(), '\\', '/');
#endif #endif
if (path.size() > PATH_MAX) if (path.size() > FILENAME_MAX)
{ {
// path too long // path too long
return false; return false;