From f55736ca4d4643f6bd424e6bf85d7ee6a8af92db Mon Sep 17 00:00:00 2001 From: Ronald Oussoren Date: Sun, 18 Apr 2010 13:47:49 +0000 Subject: Fix for issue #7072 --- Include/pyport.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Include') diff --git a/Include/pyport.h b/Include/pyport.h index a6ddbeecfc..e02a5fdcbc 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -666,6 +666,16 @@ extern int fdatasync(int); #ifdef __FreeBSD__ #include #if __FreeBSD_version > 500039 +# define _PY_PORT_CTYPE_UTF8_ISSUE +#endif +#endif + + +#if defined(__APPLE__) +# define _PY_PORT_CTYPE_UTF8_ISSUE +#endif + +#ifdef _PY_PORT_CTYPE_UTF8_ISSUE #include #include #undef isalnum @@ -683,7 +693,6 @@ extern int fdatasync(int); #undef toupper #define toupper(c) towupper(btowc(c)) #endif -#endif /* Declarations for symbol visibility. -- cgit v1.2.1