From: Victor Stinner Date: Mon, 25 Sep 2023 14:43:54 +0000 (+0200) Subject: gh-109723: Fix build of _testclinic_limited on WASM (#109842) X-Git-Tag: v3.13.0a1~306 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eeb90704375e4a69332c0d4d308d619922524a12;p=thirdparty%2FPython%2Fcpython.git gh-109723: Fix build of _testclinic_limited on WASM (#109842) Make sure that the Py_BUILD_CORE macro is not defined. --- diff --git a/Modules/_testclinic_limited.c b/Modules/_testclinic_limited.c index 0b606c9857fc..4273383816a0 100644 --- a/Modules/_testclinic_limited.c +++ b/Modules/_testclinic_limited.c @@ -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