mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-43816: Add extern "C" to Include/cpython/pyctype.h (GH-25365)
Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
This commit is contained in:
parent
9e7b2076fb
commit
54db51c911
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
#ifndef Py_LIMITED_API
|
#ifndef Py_LIMITED_API
|
||||||
#ifndef PYCTYPE_H
|
#ifndef PYCTYPE_H
|
||||||
#define PYCTYPE_H
|
#define PYCTYPE_H
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PY_CTF_LOWER 0x01
|
#define PY_CTF_LOWER 0x01
|
||||||
#define PY_CTF_UPPER 0x02
|
#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_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
|
||||||
#define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
|
#define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
#endif /* !PYCTYPE_H */
|
#endif /* !PYCTYPE_H */
|
||||||
#endif /* !Py_LIMITED_API */
|
#endif /* !Py_LIMITED_API */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue