Commit 2ee370da by Richard Stallman

(write_rbrac): Make added declarations conditional

on __cplusplus and nothing else.

From-SVN: r6129
parent f0013113
......@@ -366,7 +366,7 @@ write_rbrac ()
register struct partial_proto *partial;
if (required_unseen_count)
fprintf (outf, "#if defined(__STDC__) || defined(__cplusplus)\n");
fprintf (outf, "#ifdef __cplusplus\n");
/* Now we print out prototypes for those functions that we haven't seen. */
for (rptr = required_functions; *rptr; rptr++)
......@@ -395,7 +395,7 @@ write_rbrac ()
}
if (required_unseen_count)
fprintf (outf,
"#endif /* defined(__STDC__) || defined(__cplusplus) */\n");
"#endif /* defined(__cplusplus) */\n");
switch (special_file_handling)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment