diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-11 08:03:14 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-11 08:03:14 (GMT) |
commit | 9fab79bcb5b83dc0247ce4cd60486341c73e7fd5 (patch) | |
tree | b24f07e6f0ccb42ae02628248d1b521d6700386f /Include/modsupport.h | |
parent | c16595e567d51a1773be30c34622620b52be7acf (diff) | |
download | cpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.zip cpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.tar.gz cpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.tar.bz2 |
Issue #26900: Excluded underscored names and other private API from limited API.
Diffstat (limited to 'Include/modsupport.h')
-rw-r--r-- | Include/modsupport.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h index 99581a3..833e33d 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -15,12 +15,16 @@ extern "C" { #define PyArg_Parse _PyArg_Parse_SizeT #define PyArg_ParseTuple _PyArg_ParseTuple_SizeT #define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT +#ifndef Py_LIMITED_API #define PyArg_VaParse _PyArg_VaParse_SizeT #define PyArg_VaParseTupleAndKeywords _PyArg_VaParseTupleAndKeywords_SizeT +#endif /* !Py_LIMITED_API */ #define Py_BuildValue _Py_BuildValue_SizeT #define Py_VaBuildValue _Py_VaBuildValue_SizeT #else +#ifndef Py_LIMITED_API PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list); +#endif /* !Py_LIMITED_API */ #endif /* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */ |