| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 381da05 commit 66052f1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -222,7 +222,13 @@ extern bool _mi_process_is_initialized; // has mi_process_init been | |||
| 222 | 222 | static inline mi_threadid_t _mi_prim_thread_id(void) mi_attr_noexcept; | |
| 223 | 223 | ||
| 224 | 224 | // Get a unique id for the current thread. | |
| 225 | - #if defined(_WIN32) | ||
| 225 | + #if defined(MI_PRIM_THREAD_ID) | ||
| 226 | + | ||
| 227 | + static inline mi_threadid_t _mi_prim_thread_id(void) mi_attr_noexcept { | ||
| 228 | + return MI_PRIM_THREAD_ID(); // used for example by CPython for a free threaded build (see python/cpython#115488) | ||
| 229 | + } | ||
| 230 | + | ||
| 231 | + #elif defined(_WIN32) | ||
| 226 | 232 | ||
| 227 | 233 | #ifndef WIN32_LEAN_AND_MEAN | |
| 228 | 234 | #define WIN32_LEAN_AND_MEAN | |
| Back | FazBrowse Home | New Git URL |
0 commit comments