]> granicus.if.org Git - python/commitdiff
Fix test_re failure under Windows.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 23 Jun 2012 12:17:39 +0000 (14:17 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 23 Jun 2012 12:17:39 +0000 (14:17 +0200)
Modules/sre.h

index 01abcb0aedf75e6abc07f769d1029c705fa9e00e..00b52aaf4e5e320eb2707b10df16c6122663bceb 100644 (file)
 #include "sre_constants.h"
 
 /* size of a code word (must be unsigned short or larger, and
-   large enough to hold a Py_UNICODE character) */
-#ifdef Py_UNICODE_WIDE
+   large enough to hold a UCS4 character) */
 #define SRE_CODE Py_UCS4
-#else
-#define SRE_CODE unsigned short
-#endif
 
 typedef struct {
     PyObject_VAR_HEAD