fix PK_THREAD_LOCAL

This commit is contained in:
blueloveTH 2026-07-28 18:42:34 +08:00
parent a06e6ac6ba
commit 799829a8aa
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
typedef struct PyObject PyObject; typedef struct PyObject PyObject;
typedef struct VM VM; typedef struct VM VM;
extern _Thread_local VM* pk_current_vm; extern PK_THREAD_LOCAL VM* pk_current_vm;
typedef struct py_TValue { typedef struct py_TValue {
py_Type type; py_Type type;

View File

@ -5,7 +5,7 @@
#include "pocketpy/common/name.h" #include "pocketpy/common/name.h"
#include "pocketpy/interpreter/vm.h" #include "pocketpy/interpreter/vm.h"
_Thread_local VM* pk_current_vm; PK_THREAD_LOCAL VM* pk_current_vm;
static bool pk_initialized; static bool pk_initialized;
static bool pk_finalized; static bool pk_finalized;