diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-27 19:15:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 19:15:47 (GMT) |
commit | 57ef065eb3a9200aece38dfb6b90055500f076d3 (patch) | |
tree | 0f7533f86d5a3750f70deebf66609b13b0d9634f /Include/interpreteridobject.h | |
parent | 0063ad8189cd4ac84775eb9150b7f3373842568a (diff) | |
download | cpython-57ef065eb3a9200aece38dfb6b90055500f076d3.zip cpython-57ef065eb3a9200aece38dfb6b90055500f076d3.tar.gz cpython-57ef065eb3a9200aece38dfb6b90055500f076d3.tar.bz2 |
[3.12] gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh-105258) (gh-107303)
The _xxsubinterpreters module was meant to only use public API. Some internal C-API usage snuck in over the last few years (e.g. gh-28969). This fixes that.
(cherry picked from commit e6373c0d8b59512aa7f0dea7f3fb162b6ed10fa4)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Diffstat (limited to 'Include/interpreteridobject.h')
-rw-r--r-- | Include/interpreteridobject.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Include/interpreteridobject.h b/Include/interpreteridobject.h new file mode 100644 index 0000000..8432632 --- /dev/null +++ b/Include/interpreteridobject.h @@ -0,0 +1,17 @@ +#ifndef Py_INTERPRETERIDOBJECT_H +#define Py_INTERPRETERIDOBJECT_H + +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef Py_LIMITED_API +# define Py_CPYTHON_INTERPRETERIDOBJECT_H +# include "cpython/interpreteridobject.h" +# undef Py_CPYTHON_INTERPRETERIDOBJECT_H +#endif + +#ifdef __cplusplus +} +#endif +#endif /* !Py_INTERPRETERIDOBJECT_H */ |