From 8327ae0cb23b799bc55a45e0d4bd95f5a2b1cdf1 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 22 Jul 2013 14:39:59 -0400 Subject: make regoff_t and regex_t match C++ ABI for regoff_t, it's impossible to match on 64-bit archs because glibc defined the type in a non-conforming way. however this change makes the type match on 32-bit archs. --- include/regex.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/regex.h') diff --git a/include/regex.h b/include/regex.h index ea9b894b..dce21771 100644 --- a/include/regex.h +++ b/include/regex.h @@ -7,13 +7,12 @@ extern "C" { #include +#define __NEED_regoff_t #define __NEED_size_t #include -typedef long regoff_t; - -typedef struct { +typedef struct re_pattern_buffer { size_t re_nsub; void *__opaque, *__padding[4]; size_t __nsub2; -- cgit v1.2.1