Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d6ba6b7

Browse files
Set HAVE_UNICODE_WCHAR_CACHE and USE_UNICODE_WCHAR_CACHE only if they were not set.
1 parent 97b5228 commit d6ba6b7

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Include/cpython/unicodeobject.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@
1111

1212
/* --- Internal Unicode Operations ---------------------------------------- */
1313

14-
#define HAVE_UNICODE_WCHAR_CACHE 1
15-
#define USE_UNICODE_WCHAR_CACHE 1
14+
#ifndef HAVE_UNICODE_WCHAR_CACHE
15+
# define HAVE_UNICODE_WCHAR_CACHE 1
16+
#endif /* HAVE_UNICODE_WCHAR_CACHE */
17+
18+
#ifndef USE_UNICODE_WCHAR_CACHE
19+
# define USE_UNICODE_WCHAR_CACHE HAVE_UNICODE_WCHAR_CACHE
20+
#endif /* USE_UNICODE_WCHAR_CACHE */
1621

1722
/* Since splitting on whitespace is an important use case, and
1823
whitespace in most situations is solely ASCII whitespace, we

0 commit comments

Comments
 (0)