summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-04-18 13:47:49 (GMT)
committerRonald Oussoren <ronaldoussoren@mac.com>2010-04-18 13:47:49 (GMT)
commit37805e5c1f082c753f9088e48dc945afdba29779 (patch)
tree7265feba7893d8a28e683bb684b863e615d46be7 /Include
parentcf445fced474f4df3b67ec3cb4ae6f761173d93c (diff)
downloadcpython-37805e5c1f082c753f9088e48dc945afdba29779.zip
cpython-37805e5c1f082c753f9088e48dc945afdba29779.tar.gz
cpython-37805e5c1f082c753f9088e48dc945afdba29779.tar.bz2
Fix for issue #7072
Diffstat (limited to 'Include')
-rw-r--r--Include/pyport.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Include/pyport.h b/Include/pyport.h
index a6ddbee..e02a5fd 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.