diff --git a/source/CHANGELOG.md b/source/CHANGELOG.md index 894ce61a..632290c5 100644 --- a/source/CHANGELOG.md +++ b/source/CHANGELOG.md @@ -3,6 +3,7 @@ Andreas Abel * BNFC now uniformly signs generated files with its version number [#373] +* C/C++: include `stdio.h` in parser header files [#381] * C++: fixed parser regression in 2.9.2: missing `#include ` [#377] * Ocaml: lex CR as whitespace [see also #376] diff --git a/source/src/BNFC/Backend/CPP/NoSTL.hs b/source/src/BNFC/Backend/CPP/NoSTL.hs index 8474e803..bb632cb5 100644 --- a/source/src/BNFC/Backend/CPP/NoSTL.hs +++ b/source/src/BNFC/Backend/CPP/NoSTL.hs @@ -130,6 +130,7 @@ mkHeaderFile _cf _cats eps _env = unlines $ concat [ [ "#ifndef PARSER_HEADER_FILE" , "#define PARSER_HEADER_FILE" , "" + , "#include " , "#include \"Absyn.H\"" , "" ]