# HG changeset patch # User Andrew V. Jones <andrewvaughanj@gmail.com> # Date 1618313241 -3600 # Tue Apr 13 12:27:21 2021 +0100 # Node ID c8b1c3bf07721c6070e049e44be1ba3868cdf310 # Parent 6058ec21f9ba6095eba1e9949487e389cc91c6e1 bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365) Signed-off-by: Andrew V. Jones <andrew.jones@vector.com> diff --git a/Include/cpython/pyctype.h b/Include/cpython/pyctype.h --- a/Include/cpython/pyctype.h +++ b/Include/cpython/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 @@ #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 */