diff options
Diffstat (limited to 'src/include/regex/utils.h')
-rw-r--r-- | src/include/regex/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/include/regex/utils.h b/src/include/regex/utils.h index a7cae06919c..6f02759aa14 100644 --- a/src/include/regex/utils.h +++ b/src/include/regex/utils.h @@ -42,7 +42,12 @@ /* utility definitions */ #define DUPMAX 100000000 /* xxx is this right? */ #define INFINITY (DUPMAX + 1) + +#ifdef MB +#define NC (SHRT_MAX - SHRT_MIN + 1) +#else #define NC (CHAR_MAX - CHAR_MIN + 1) +#endif typedef unsigned char uch; /* switch off assertions (if not already off) if no REDEBUG */ |