# HG changeset patch # User Dave Love # Date 961451986 0 # Node ID 02b772ba90045bdc7ffa0586cc930f9188405fc9 # Parent fd38c0633be7d71d8e9f57b20ffb98806f50255f Test PROTOTYPES as well as __STDC__. diff --git a/regex.h b/regex.h --- a/regex.h +++ b/regex.h @@ -412,15 +412,15 @@ unfortunately clutters up the declarations a bit, but I think it's worth it. */ -#if __STDC__ +#if defined __STDC__ || defined PROTOTYPES #define _RE_ARGS(args) args -#else /* not __STDC__ */ +#else /* not __STDC__ || PROTOTYPES */ #define _RE_ARGS(args) () -#endif /* not __STDC__ */ +#endif /* not __STDC__ || PROTOTYPES */ /* Sets the current default syntax to SYNTAX, and return the old syntax. You can also simply assign to the `re_syntax_options' variable. */