diff options
author | Philipp Stephani <phst@google.com> | 2020-12-24 16:48:40 +0100 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2020-12-24 16:48:40 +0100 |
commit | 29064d02c31b08ae41d41a93fd1439718373b196 (patch) | |
tree | 6c976729d7c6f296b36965f235d2a58e8142393e /lib/regex_internal.h | |
parent | 26b8b30ff42568ff3e3f8599a20328a1efe93d2a (diff) | |
download | emacs-29064d02c31b08ae41d41a93fd1439718373b196.tar.gz |
Update Gnulib.
All changes in this commit are autogenerated by running
admin/merge-gnulib.
Diffstat (limited to 'lib/regex_internal.h')
-rw-r--r-- | lib/regex_internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/regex_internal.h b/lib/regex_internal.h index 0c72e3f7b01..7b50b478114 100644 --- a/lib/regex_internal.h +++ b/lib/regex_internal.h @@ -77,6 +77,14 @@ # define isblank(ch) ((ch) == ' ' || (ch) == '\t') #endif +/* regex code assumes isascii has its usual numeric meaning, + even if the portable character set uses EBCDIC encoding, + and even if wint_t is wider than int. */ +#ifndef _LIBC +# undef isascii +# define isascii(c) (((c) & ~0x7f) == 0) +#endif + #ifdef _LIBC # ifndef _RE_DEFINE_LOCALE_FUNCTIONS # define _RE_DEFINE_LOCALE_FUNCTIONS 1 |