summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/flex/flex.skl5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/flex/flex.skl b/contrib/flex/flex.skl
index b693ba9..d06471f 100644
--- a/contrib/flex/flex.skl
+++ b/contrib/flex/flex.skl
@@ -1032,7 +1032,9 @@ extern int yywrap M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );
%not-for-header
m4_ifdef( [[M4_YY_NO_UNPUT]],,
[[
+#ifndef YY_NO_UNPUT
static void yyunput M4_YY_PARAMS( int c, char *buf_ptr M4_YY_PROTO_LAST_ARG);
+#endif
]])
%ok-for-header
%endif
@@ -1808,9 +1810,11 @@ m4_ifdef( [[M4_YY_USES_REJECT]],
%if-c-only
m4_ifdef( [[M4_YY_NO_UNPUT]],,
[[
+#ifndef YY_NO_UNPUT
static void yyunput YYFARGS2( int,c, char *,yy_bp)
%endif
%if-c++-only
+#ifndef YY_NO_UNPUT
void yyFlexLexer::yyunput( int c, char* yy_bp)
%endif
{
@@ -1857,6 +1861,7 @@ m4_ifdef( [[M4_YY_USE_LINENO]],
YY_G(yy_hold_char) = *yy_cp;
YY_G(yy_c_buf_p) = yy_cp;
}
+#endif /* ifndef YY_NO_UNPUT */
%if-c-only
]])
%endif
OpenPOWER on IntegriCloud