Skip to content

Commit ed1fa67

Browse files
Fix pure1 file with -import-std
1 parent 68b716a commit ed1fa67

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/to_cpp1.h

+7
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,13 @@ class cppfront
14971497
//
14981498
if (!source.has_cpp2()) {
14991499
assert(ret.cpp2_lines == 0);
1500+
if (
1501+
cpp1_filename.back() == 'h'
1502+
&& (flag_import_std || flag_include_std)
1503+
)
1504+
{
1505+
printer.print_extra( "\n#endif" );
1506+
}
15001507
return ret;
15011508
}
15021509

0 commit comments

Comments
 (0)