cpython: 2f857ac9c7af (original) (raw)

Mercurial > cpython

changeset 102662:2f857ac9c7af 3.5

Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X. Patch by Ronald Oussoren. [#10910]

Ned Deily nad@python.org
date Mon, 15 Aug 2016 03:07:26 -0400
parents 2aa2fbb681d8
children 27a99a722828
files Include/pyport.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-)[+] [-] Include/pyport.h 7

line wrap: on

line diff

--- a/Include/pyport.h +++ b/Include/pyport.h @@ -688,6 +688,12 @@ extern pid_t forkpty(int *, char *, stru #endif #ifdef _PY_PORT_CTYPE_UTF8_ISSUE +#ifndef __cplusplus

#include <ctype.h> #include <wctype.h> #undef isalnum @@ -705,6 +711,7 @@ extern pid_t forkpty(int *, char , stru #undef toupper #define toupper(c) towupper(btowc(c)) #endif +#endif / Declarations for symbol visibility.