aboutsummaryrefslogtreecommitdiffstats
path: root/regex_internal.h
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-06-14 19:06:21 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-06-14 19:06:21 +0300
commit367417c47be947ed7d0af7b430af5ff1626bf7c1 (patch)
tree24ca3bd3e6be1b60079069693d7115daf5e0c322 /regex_internal.h
parent98904e6eee37f5f5373a9597ed134adc34a77519 (diff)
downloadegawk-367417c47be947ed7d0af7b430af5ff1626bf7c1.tar.gz
egawk-367417c47be947ed7d0af7b430af5ff1626bf7c1.tar.bz2
egawk-367417c47be947ed7d0af7b430af5ff1626bf7c1.zip
Sync regex routines wit GLIBC.
Diffstat (limited to 'regex_internal.h')
-rw-r--r--regex_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/regex_internal.h b/regex_internal.h
index 327bd7e0..e0dd3517 100644
--- a/regex_internal.h
+++ b/regex_internal.h
@@ -803,6 +803,10 @@ re_string_wchar_at (const re_string_t *pstr, int idx)
}
# ifndef NOT_IN_libc
+# ifdef _LIBC
+# include <locale/weight.h>
+# endif
+
static int
internal_function __attribute__ ((pure, unused))
re_string_elem_size_at (const re_string_t *pstr, int idx)
@@ -810,7 +814,6 @@ re_string_elem_size_at (const re_string_t *pstr, int idx)
# ifdef _LIBC
const unsigned char *p, *extra;
const int32_t *table, *indirect;
-# include <locale/weight.h>
uint_fast32_t nrules = _NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES);
if (nrules != 0)