diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-11 11:03:14 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-09-11 11:03:14 +0300 |
commit | 97b3ef45e988a2ede5143dbf716991ca621a0914 (patch) | |
tree | 2a7fdf8c126fc8b01f42d2fbe9e5cbf90dda8d21 /Include/modsupport.h | |
parent | 4c21c04f36ab2a2b2a6a5112950fccebdebb5319 (diff) | |
download | cpython-97b3ef45e988a2ede5143dbf716991ca621a0914.tar.gz |
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 99581a39fb..833e33d574 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. */ |