Skip to content

Commit 3b8d1d5

Browse files
author
Daniel Kroening
committed
fix for switching from C++ back to C
1 parent 79c1019 commit 3b8d1d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ansi-c/ansi_c_language.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ bool ansi_c_languaget::parse(
109109

110110
// preprocessing
111111

112+
if(config.ansi_c.mode==configt::ansi_ct::flavourt::MODE_GCC_CPP)
113+
config.ansi_c.mode=configt::ansi_ct::flavourt::MODE_GCC_C;
114+
112115
std::ostringstream o_preprocessed;
113116

114117
if(preprocess(instream, path, o_preprocessed))

0 commit comments

Comments
 (0)