[Python-checkins] cpython (2.7): Try to fix linking failures under Windows

antoine.pitrou python-checkins at python.org
Tue Oct 4 14:49:18 CEST 2011


http://hg.python.org/cpython/rev/504981afa007
changeset:   72660:504981afa007
branch:      2.7
parent:      72657:60d80880bf88
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Oct 04 14:45:32 2011 +0200
summary:
  Try to fix linking failures under Windows

files:
  Include/pyctype.h |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Include/pyctype.h b/Include/pyctype.h
--- a/Include/pyctype.h
+++ b/Include/pyctype.h
@@ -9,7 +9,7 @@
 #define PY_CTF_SPACE  0x08
 #define PY_CTF_XDIGIT 0x10
 
-extern const unsigned int _Py_ctype_table[256];
+PyAPI_DATA(const unsigned int) _Py_ctype_table[256];
 
 /* Unlike their C counterparts, the following macros are not meant to
  * handle an int with any of the values [EOF, 0-UCHAR_MAX]. The argument
@@ -22,8 +22,8 @@
 #define Py_ISALNUM(c)  (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_ALNUM)
 #define Py_ISSPACE(c)  (_Py_ctype_table[Py_CHARMASK(c)] & PY_CTF_SPACE)
 
-extern const unsigned char _Py_ctype_tolower[256];
-extern const unsigned char _Py_ctype_toupper[256];
+PyAPI_DATA(const unsigned char) _Py_ctype_tolower[256];
+PyAPI_DATA(const unsigned char) _Py_ctype_toupper[256];
 
 #define Py_TOLOWER(c) (_Py_ctype_tolower[Py_CHARMASK(c)])
 #define Py_TOUPPER(c) (_Py_ctype_toupper[Py_CHARMASK(c)])

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list