]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Try to fix linking failures under Windows
authorAntoine Pitrou <solipsis@pitrou.net>
Tue, 4 Oct 2011 12:45:32 +0000 (14:45 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Tue, 4 Oct 2011 12:45:32 +0000 (14:45 +0200)
Include/pyctype.h

index c5cc61431d08e0cc8e3b58511b4d618b154c42de..673cf2eb0092a72b062d6bb58c5c47fbde43424c 100644 (file)
@@ -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 @@ extern const unsigned int _Py_ctype_table[256];
 #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)])