yacc.c: don't suggest api.header.include when --defines is not used

See 4e19ab9fcd: the suggestion to
include the header file should not be emitted when the header is not
generated.

* data/skeletons/yacc.c: Here.
This commit is contained in:
Akim Demaille
2019-03-20 08:36:34 +01:00
parent ae91c3cce3
commit b5cd777ad6

View File

@@ -374,9 +374,10 @@ m4_if(b4_api_prefix, [yy], [],
#endif
]b4_header_include_if([[#include ]b4_percent_define_get([[api.header.include]])],
[m4_ifval(m4_quote(b4_spec_header_file),
[/* Use api.header.include to #include this header
instead of duplicating it here. */
b4_shared_declarations])[
])b4_shared_declarations])[
]b4_user_post_prologue[
]b4_percent_code_get[]dnl