diff options
| author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-04-18 13:47:49 +0000 |
|---|---|---|
| committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-04-18 13:47:49 +0000 |
| commit | f55736ca4d4643f6bd424e6bf85d7ee6a8af92db (patch) | |
| tree | 4507bfd57356339c609f3caab7f182431468e272 /Include | |
| parent | a8fd91d38a15782ff642bd7baa8584d8eeffc245 (diff) | |
| download | cpython-f55736ca4d4643f6bd424e6bf85d7ee6a8af92db.tar.gz | |
Fix for issue #7072
Diffstat (limited to 'Include')
| -rw-r--r-- | Include/pyport.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <osreldate.h> #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 <ctype.h> #include <wctype.h> #undef isalnum @@ -683,7 +693,6 @@ extern int fdatasync(int); #undef toupper #define toupper(c) towupper(btowc(c)) #endif -#endif /* Declarations for symbol visibility. |
