From aa3be3b63dc2ab24a615526e6c9e630f9df06dc6 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Mon, 5 Aug 2024 10:38:59 +0800 Subject: [PATCH] ... --- src/modules/os.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/os.c b/src/modules/os.c index ddc53fda..984c81f9 100644 --- a/src/modules/os.c +++ b/src/modules/os.c @@ -5,14 +5,14 @@ #include "pocketpy/common/sstream.h" #include "pocketpy/interpreter/vm.h" -#if _WIN32 +#if PY_SYS_PLATFORM == 0 #include int platform_chdir(const char* path) { return _chdir(path); } bool platform_getcwd(char* buf, size_t size) { return _getcwd(buf, size) != NULL; } -#elif __linux__ +#elif PY_SYS_PLATFORM == 3 || PY_SYS_PLATFORM == 5 #include int platform_chdir(const char* path) { return chdir(path); }