View | Details | Raw Unified | Return to bug 197226 | Differences between
and this patch

Collapse All | Expand All

(-)lang/python33/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	python33
3
PORTNAME=	python33
4
PORTVERSION=	3.3.5
4
PORTVERSION=	3.3.5
5
PORTREVISION=	5
5
PORTREVISION=	6
6
CATEGORIES=	lang python ipv6
6
CATEGORIES=	lang python ipv6
7
MASTER_SITES=	PYTHON
7
MASTER_SITES=	PYTHON
8
MASTER_SITE_SUBDIR=	ftp/python/${PORTVERSION}
8
MASTER_SITE_SUBDIR=	ftp/python/${PORTVERSION}
(-)lang/python33/files/patch-Include__pyport.h (+23 lines)
Line 0 Link Here
1
--- Include/pyport.h.orig	2014-03-09 09:40:07.000000000 +0100
2
+++ Include/pyport.h	2015-02-02 22:32:19.000000000 +0100
3
@@ -697,6 +697,12 @@
4
 #endif
5
 
6
 #ifdef _PY_PORT_CTYPE_UTF8_ISSUE
7
+#ifndef __cplusplus
8
+   /* The workaround below is unsafe in C++ because
9
+    * the <locale> defines these symbols as real functions,
10
+    * with a slightly different signature.
11
+    * See Mac Ports issue #10910
12
+    */
13
 #include <ctype.h>
14
 #include <wctype.h>
15
 #undef isalnum
16
@@ -714,6 +720,7 @@
17
 #undef toupper
18
 #define toupper(c) towupper(btowc(c))
19
 #endif
20
+#endif
21
 
22
 
23
 /* Declarations for symbol visibility.

Return to bug 197226