diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-04-13 11:45:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 11:45:20 (GMT) |
commit | 47a894d338f436ea8f513f1ad2cc7e1b086e99cc (patch) | |
tree | 17fd4ff287aca0a2e4c902c5d38553738962c5e9 /Include | |
parent | b71aaa0df0f3a9640b034b4774651cd8c54d2fb9 (diff) | |
download | cpython-47a894d338f436ea8f513f1ad2cc7e1b086e99cc.zip cpython-47a894d338f436ea8f513f1ad2cc7e1b086e99cc.tar.gz cpython-47a894d338f436ea8f513f1ad2cc7e1b086e99cc.tar.bz2 |
bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365)
Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
(cherry picked from commit 54db51c9114ac49030832f5134979ca866ffd21c)
Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyctype.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pyctype.h b/Include/pyctype.h index 6bce63e..729d932 100644 --- a/Include/pyctype.h +++ b/Include/pyctype.h @@ -1,6 +1,9 @@ #ifndef Py_LIMITED_API #ifndef PYCTYPE_H #define PYCTYPE_H +#ifdef __cplusplus +extern "C" { +#endif #define PY_CTF_LOWER 0x01 #define PY_CTF_UPPER 0x02 @@ -29,5 +32,8 @@ PyAPI_DATA(const unsigned char) _Py_ctype_toupper[256]; #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)]) #define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)]) +#ifdef __cplusplus +} +#endif #endif /* !PYCTYPE_H */ #endif /* !Py_LIMITED_API */ |