Mercurial > hg > octave-kai > gnulib-hg
changeset 7066:3288bb324a28
* regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
macro expansion.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Sat, 29 Jul 2006 00:03:36 +0000 |
parents | cae41cb69541 |
children | feeaa258effc |
files | lib/ChangeLog lib/regex_internal.h |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2006-07-28 Eric Blake <ebb9@byu.net> + + * regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89 + macro expansion. + 2006-07-28 Simon Josefsson <jas@extundo.com> * inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
--- a/lib/regex_internal.h +++ b/lib/regex_internal.h @@ -49,7 +49,6 @@ #if defined _LIBC # include <bits/libc-lock.h> #else -# define __libc_lock_define(CLASS,NAME) # define __libc_lock_init(NAME) do { } while (0) # define __libc_lock_lock(NAME) do { } while (0) # define __libc_lock_unlock(NAME) do { } while (0) @@ -711,7 +710,9 @@ #ifdef DEBUG char* re_str; #endif +#ifdef _LIBC __libc_lock_define (, lock) +#endif }; #define re_node_set_init_empty(set) memset (set, '\0', sizeof (re_node_set))