From: Gerd Moellmann Date: Tue, 9 Oct 2001 10:05:13 +0000 (+0000) Subject: (WIDE_CHAR_SUPPORT): Do not use defined() in macro. X-Git-Tag: emacs-unicode-base~37 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b8e81480aaf4da81ced9196bfecb1478a538f7b8;p=gnulib.git (WIDE_CHAR_SUPPORT): Do not use defined() in macro. From Hallvard B Furuseth . --- diff --git a/regex.c b/regex.c index 9fe099c712..38fc80437f 100644 --- a/regex.c +++ b/regex.c @@ -49,8 +49,12 @@ /* Whether to use ISO C Amendment 1 wide char functions. Those should not be used for Emacs since it uses its own. */ +#if defined _LIBC +#define WIDE_CHAR_SUPPORT 1 +#else #define WIDE_CHAR_SUPPORT \ - (defined _LIBC || HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC && !emacs) + (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC && !emacs) +#endif /* For platform which support the ISO C amendement 1 functionality we support user defined character classes. */