Skip to content

Commit efd60c0

Browse files
committed
pythongh-104469: Disallow using Py_LIMITED_API with Py_BUILD_CORE
1 parent 5b8f024 commit efd60c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Include/pyport.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
# define Py_BUILD_CORE
4949
#endif
5050

51+
#if defined(Py_LIMITED_API) && defined(Py_BUILD_CORE)
52+
# error "Py_LIMITED_API and Py_BUILD_CORE are exclusive macros"
53+
#endif
54+
5155

5256
/**************************************************************************
5357
Symbols and macros to supply platform-independent interfaces to basic

0 commit comments

Comments
 (0)