diff options
Diffstat (limited to 'posix/regex.h')
-rw-r--r-- | posix/regex.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/posix/regex.h b/posix/regex.h index 42afd84881..21dcf09005 100644 --- a/posix/regex.h +++ b/posix/regex.h @@ -283,6 +283,10 @@ typedef enum compiled, the `re_nsub' field is available. All other fields are private to the regex routines. */ +#ifndef RE_TRANSLATE_TYPE +#define RE_TRANSLATE_TYPE char * +#endif + struct re_pattern_buffer { /* [[[begin pattern_buffer]]] */ @@ -309,7 +313,7 @@ struct re_pattern_buffer comparing them, or zero for no translation. The translation is applied to a pattern when it is compiled and to a string when it is matched. */ - char *translate; + RE_TRANSLATE_TYPE translate; /* Number of subexpressions found by the compiler. */ size_t re_nsub; |