8000 bpo-43816: add 'extern "C"' to pyctype.h by aytey · Pull Request #25365 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-43816: add 'extern "C"' to pyctype.h #25365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 13, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
8000
Diff view
Diff view
Next Next commit
bpo-43816: add 'extern "C"' to pyctype.h
Signed-off-by: Andrew V. Jones <andrew.jones@vector.com>
  • Loading branch information
aytey committed Apr 13, 2021
commit 468e639cbd8260d9472d2b91271825068d557ddf
8 changes: 8 additions & 0 deletions Include/cpython/pyctype.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#ifndef PYCTYPE_H
#define PYCTYPE_H

#ifdef __cplusplus
extern "C" {
#endif

#define PY_CTF_LOWER 0x01
#define PY_CTF_UPPER 0x02
#define PY_CTF_ALPHA (PY_CTF_LOWER|PY_CTF_UPPER)
Expand Down Expand Up @@ -29,5 +33,9 @@ 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 */
0