Skip to content

Commit 6422cbe

Browse files
DinoVmeta-codesync[bot]
authored andcommitted
Don't define __attribute__((weak)) on Windows
Summary: This broke the Windows build, we can simply not define it on Windows. Reviewed By: jermenkoo Differential Revision: D89497063 fbshipit-source-id: b78da04e349ede823cffcd75130e50b37963803b
1 parent fa9862d commit 6422cbe

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Include/internal/pycore_interpframe.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ extern "C" {
1919

2020
#ifdef META_PYTHON
2121

22-
__attribute__((weak)) PyAPI_DATA(PyTypeObject) PyUnstable_JITExecutable_Type;
22+
#ifndef WIN32
23+
__attribute__((weak))
24+
#endif
25+
PyAPI_DATA(PyTypeObject) PyUnstable_JITExecutable_Type;
2326

2427
#define PyUnstable_JITExecutable_Check(op) Py_IS_TYPE((op), &PyUnstable_JITExecutable_Type)
2528

0 commit comments

Comments
 (0)