gh-109723: Fix build of _testclinic_limited on WASM (#109842)

Make sure that the Py_BUILD_CORE macro is not defined.
This commit is contained in:
Victor Stinner 2023-09-25 16:43:54 +02:00 committed by GitHub
parent 86e7c611ac
commit eeb9070437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,9 @@
// _testclinic_limited can built with the Py_BUILD_CORE_BUILTIN macro defined
// if one of the Modules/Setup files asks to build it as "static" (gh-109723).
#undef Py_BUILD_CORE
#undef Py_BUILD_CORE_MODULE
#undef Py_BUILD_CORE_BUILTIN
// For now, only limited C API 3.13 is supported
#define Py_LIMITED_API 0x030d0000