You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The headers define a number of identifiers that don't start with Py (or _Py), potentially clashing with other code.
[...]
configure cruft like HAVE_STRFTIM or SIZEOF_SIZE_T
We can add an m4 macro that wraps AC_DEFINE and AH_TEMPLATE, to make sure we namespace any defines produced by configure. I'm not sure how PEP-387 plays in here; can we simply change these preprocessor defines? I guess not, since what's exposed in Python.h is protected by PEP-387. For now, let's just add macros that add properly namespaced defined in addition to the existing ones.
Add macros that add Py_ namespaced defined in addition to the existing defs
Add PY_DEFINE macro that wraps AC_DEFINE
Add PY_TEMPLATE macro that wraps AH_TEMPLATE
Add PY_CHECK_HEADERS macro that wraps AC_CHECK_HEADERS
Quoting from capi-workgroup/problems#46:
We can add an m4 macro that wraps
AC_DEFINE
andAH_TEMPLATE
, to make sure we namespace any defines produced byconfigure
. I'm not sure how PEP-387 plays in here; can we simply change these preprocessor defines? I guess not, since what's exposed in Python.h is protected by PEP-387. For now, let's just add macros that add properly namespaced defined in addition to the existing ones.Py_
namespaced defined in addition to the existing defsPY_DEFINE
macro that wrapsAC_DEFINE
PY_TEMPLATE
macro that wrapsAH_TEMPLATE
PY_CHECK_HEADERS
macro that wrapsAC_CHECK_HEADERS
configure.ac
Linked PRs
PY_DEFINE
macro #128525The text was updated successfully, but these errors were encountered: