Add iOS support for working directory operations

This commit is contained in:
felfoldy 2025-10-31 19:47:44 +01:00 committed by GitHub
parent 10ce995780
commit ca308c7013
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ bool platform_getcwd(char* buf, size_t size) { return _getcwd(buf, size) != NULL
bool platform_path_exists(const char* path) { return _access(path, 0) == 0; }
#elif PY_SYS_PLATFORM == 3 || PY_SYS_PLATFORM == 5
#elif PY_SYS_PLATFORM == 2 || PY_SYS_PLATFORM == 3 || PY_SYS_PLATFORM == 5
#include <unistd.h>
int platform_chdir(const char* path) { return chdir(path); }