summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'Modules')
-rw-r--r--Modules/sre.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/sre.h b/Modules/sre.h
index 61a0208..632f47e 100644
--- a/Modules/sre.h
+++ b/Modules/sre.h
@@ -13,8 +13,9 @@
#include "sre_constants.h"
-/* size of a code word (must be unsigned short or larger) */
-#ifdef USE_UCS4_STORAGE
+/* size of a code word (must be unsigned short or larger, and
+ large enough to hold a Py_UNICODE character) */
+#ifdef Py_UNICODE_WIDE
#define SRE_CODE unsigned long
#else
#define SRE_CODE unsigned short