Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix pure1 file with -import-std
  • Loading branch information
MatthieuHernandez committed Oct 17, 2024
commit ed1fa670e0fa211776e611bd6ffeaf8c58f41ace
7 changes: 7 additions & 0 deletions source/to_cpp1.h
Original file line number Diff line number Diff line change
Expand Up @@ -1497,6 +1497,13 @@ class cppfront
//
if (!source.has_cpp2()) {
assert(ret.cpp2_lines == 0);
if (
cpp1_filename.back() == 'h'
&& (flag_import_std || flag_include_std)
)
{
printer.print_extra( "\n#endif" );
}
return ret;
}

Expand Down