Skip to content

Commit eeb9070

Browse files
authored
gh-109723: Fix build of _testclinic_limited on WASM (#109842)
Make sure that the Py_BUILD_CORE macro is not defined.
1 parent 86e7c61 commit eeb9070

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Modules/_testclinic_limited.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
// _testclinic_limited can built with the Py_BUILD_CORE_BUILTIN macro defined
2+
// if one of the Modules/Setup files asks to build it as "static" (gh-109723).
3+
#undef Py_BUILD_CORE
4+
#undef Py_BUILD_CORE_MODULE
5+
#undef Py_BUILD_CORE_BUILTIN
6+
17
// For now, only limited C API 3.13 is supported
28
#define Py_LIMITED_API 0x030d0000
39

0 commit comments

Comments
 (0)