refactor: added apple macro for fs handling

This commit is contained in:
jeans 2024-04-27 01:07:07 -06:00 committed by Erik Ekman
parent 8e1a247c1f
commit 86c9f79991

View File

@ -77,7 +77,7 @@ static int deflate_level; /* default compression level, can be changed via comma
#define CHDIR(path) SetCurrentDirectoryA(path)
#define CHDIR_SUCCEEDED(ret) (ret == TRUE)
#elif __linux__
#elif __linux__ || __APPLE__
#define GETCWD(path, len) getcwd(path, len)
#define GETCWD_SUCCEEDED(ret) (ret != NULL)