8000 bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365) · python/cpython@47a894d · GitHub
[go: up one dir, main page]

Skip to content

Commit 47a894d

Browse files
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 54db51c) Co-authored-by: Andrew V. Jones <andrewvaughanj@gmail.com>
1 parent b71aaa0 commit 47a894d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Include/pyctype.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#ifndef Py_LIMITED_API
22
#ifndef PYCTYPE_H
33
#define PYCTYPE_H
4+
#ifdef __cplusplus
5+
extern "C" {
6+
#endif
47

58
#define PY_CTF_LOWER 0x01
69
#define PY_CTF_UPPER 0x02
@@ -29,5 +32,8 @@ PyAPI_DATA(const unsigned char) _Py_ctype_toupper[256];
2932
#define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
3033
#define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
3134

35+
#ifdef __cplusplus
36+
}
37+
#endif
3238
#endif /* !PYCTYPE_H */
3339
#endif /* !Py_LIMITED_API */

0 commit comments

Comments
 (0)
0