diff --git a/Include/cpython/pyctype.h b/Include/cpython/pyctype.h
index 6058ec21f9ba6095eba1e9949487e389cc91c6e1_SW5jbHVkZS9jcHl0aG9uL3B5Y3R5cGUuaA==..c8b1c3bf07721c6070e049e44be1ba3868cdf310_SW5jbHVkZS9jcHl0aG9uL3B5Y3R5cGUuaA== 100644
--- 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 */