diff options
| author | Stefan Monnier | 2000-10-15 16:44:45 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-10-15 16:44:45 +0000 |
| commit | a0ad02f7fbc71420a601bb117184b8cc5d0f3177 (patch) | |
| tree | 072ec4e19c2ac9d5cc67c6d9910942baea7379fc /src | |
| parent | b3b7f42fd1772c715797e3cdf6336ccb380199c9 (diff) | |
| download | emacs-a0ad02f7fbc71420a601bb117184b8cc5d0f3177.tar.gz emacs-a0ad02f7fbc71420a601bb117184b8cc5d0f3177.zip | |
(WIDE_CHAR_SUPPORT): Define if _LIBC as well.
Mostly, just a test of the CVS repository.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regex.c b/src/regex.c index ffbe5fbce9c..a589f155178 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -53,11 +53,11 @@ | |||
| 53 | /* Whether to use ISO C Amendment 1 wide char functions. | 53 | /* Whether to use ISO C Amendment 1 wide char functions. |
| 54 | Those should not be used for Emacs since it uses its own. */ | 54 | Those should not be used for Emacs since it uses its own. */ |
| 55 | #define WIDE_CHAR_SUPPORT \ | 55 | #define WIDE_CHAR_SUPPORT \ |
| 56 | (HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC && !emacs) | 56 | (defined _LIBC || HAVE_WCTYPE_H && HAVE_WCHAR_H && HAVE_BTOWC && !emacs) |
| 57 | 57 | ||
| 58 | /* For platform which support the ISO C amendement 1 functionality we | 58 | /* For platform which support the ISO C amendement 1 functionality we |
| 59 | support user defined character classes. */ | 59 | support user defined character classes. */ |
| 60 | #if defined _LIBC || WIDE_CHAR_SUPPORT | 60 | #if WIDE_CHAR_SUPPORT |
| 61 | /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */ | 61 | /* Solaris 2.5 has a bug: <wchar.h> must be included before <wctype.h>. */ |
| 62 | # include <wchar.h> | 62 | # include <wchar.h> |
| 63 | # include <wctype.h> | 63 | # include <wctype.h> |
| @@ -1933,7 +1933,7 @@ struct range_table_work_area | |||
| 1933 | } \ | 1933 | } \ |
| 1934 | } while (0) | 1934 | } while (0) |
| 1935 | 1935 | ||
| 1936 | #if defined _LIBC || WIDE_CHAR_SUPPORT | 1936 | #if WIDE_CHAR_SUPPORT |
| 1937 | /* The GNU C library provides support for user-defined character classes | 1937 | /* The GNU C library provides support for user-defined character classes |
| 1938 | and the functions from ISO C amendement 1. */ | 1938 | and the functions from ISO C amendement 1. */ |
| 1939 | # ifdef CHARCLASS_NAME_MAX | 1939 | # ifdef CHARCLASS_NAME_MAX |