mirror of
https://github.com/libAthena/athena.git
synced 2025-12-10 05:57:57 +00:00
Windows fixes
This commit is contained in:
@@ -70,7 +70,7 @@ bool Dir::touch()
|
||||
bool Dir::mkdir(std::string_view dir, mode_t mode)
|
||||
{
|
||||
#if _WIN32
|
||||
return !(::_mkdir(dir.c_str()) < 0);
|
||||
return !(::_mkdir(dir.data()) < 0);
|
||||
#else
|
||||
return !(::mkdir(dir.data(), mode) < 0);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user