From bf36536c9fa398161b24668ad1c29f12f86556e8 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 22 Jul 2014 07:28:09 -0700 Subject: * configure: Add a check, in the case that we cannot make an executable, whether this is due to being required to use C99. For instance, the Solaris environment requires compilation using the C99 dialect if _XOPEN_SOURCE is set to 600 or higher. * debug.c: When compiling as C99, we have to obey the special C99 conventions for instantiating inline functions. * hash.c: Likewise. * lib.c: Likewise. * parser.y: Likewise. * unwind.c: Likewise. --- parser.y | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'parser.y') diff --git a/parser.y b/parser.y index be8e6063..6b4f1c70 100644 --- a/parser.y +++ b/parser.y @@ -1013,6 +1013,11 @@ not_a_clause : ALL { $$ = make_expr(all_s, nil, num(lineno)); } %% +/* C99 inline instantiations. */ +#if __STDC_VERSION__ >= 199901L +val rlcp(val to, val from); +#endif + static val sym_helper(wchar_t *lexeme, val meta_allowed) { int leading_at = *lexeme == L'@'; -- cgit v1.2.3