diff options
| author | Gregory P. Smith <greg@krypto.org> | 2015-04-26 04:59:52 (GMT) |
|---|---|---|
| committer | Gregory P. Smith <greg@krypto.org> | 2015-04-26 04:59:52 (GMT) |
| commit | 5d0ccd2f91965228921663032256eb165c9c2680 (patch) | |
| tree | 0f86c93ff24cd745b4ba843f256dc41aff3f9ff7 /Python | |
| parent | 9c6b916662f34e7dfce847b66d55309e2ae0caae (diff) | |
| download | cpython-5d0ccd2f91965228921663032256eb165c9c2680.zip cpython-5d0ccd2f91965228921663032256eb165c9c2680.tar.gz cpython-5d0ccd2f91965228921663032256eb165c9c2680.tar.bz2 | |
Add missing PyAPI_FUNC macro's to the public functions as other .c files do
in hopes that this fixes the windows extension module link error for modules
trying to call _Py_strhex functions. issue9951.
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/pystrhex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/pystrhex.c b/Python/pystrhex.c index b8f3146..a20e3074 100644 --- a/Python/pystrhex.c +++ b/Python/pystrhex.c @@ -47,14 +47,14 @@ static PyObject *_Py_strhex_impl(const char* argbuf, const Py_ssize_t arglen, return retval; } -PyObject *_Py_strhex(const char* argbuf, const Py_ssize_t arglen) +PyAPI_FUNC(PyObject *) _Py_strhex(const char* argbuf, const Py_ssize_t arglen) { return _Py_strhex_impl(argbuf, arglen, 0); } /* Same as above but returns a bytes() instead of str() to avoid the * need to decode the str() when bytes are needed. */ -PyObject *_Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen) +PyAPI_FUNC(PyObject *) _Py_strhex_bytes(const char* argbuf, const Py_ssize_t arglen) { return _Py_strhex_impl(argbuf, arglen, 1); } |
