summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorRonald Oussoren <ronaldoussoren@mac.com>2010-04-18 13:47:49 +0000
committerRonald Oussoren <ronaldoussoren@mac.com>2010-04-18 13:47:49 +0000
commitf55736ca4d4643f6bd424e6bf85d7ee6a8af92db (patch)
tree4507bfd57356339c609f3caab7f182431468e272 /Include
parenta8fd91d38a15782ff642bd7baa8584d8eeffc245 (diff)
downloadcpython-f55736ca4d4643f6bd424e6bf85d7ee6a8af92db.tar.gz
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 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.