Commit 55e2b88e by Per Bothner

Fix to previous check-in.

From-SVN: r7898
parent 861dfa94
...@@ -385,7 +385,7 @@ write_rbrac () ...@@ -385,7 +385,7 @@ write_rbrac ()
fprintf (outf, fprintf (outf,
"#if defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__)\n"); "#if defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__)\n");
#ifdef NO_IMPLICIT_EXTERN_C #ifdef NO_IMPLICIT_EXTERN_C
fprintf (outf, "extern \"C\" {\n"); fprintf (outf, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n");
#endif #endif
} }
...@@ -417,7 +417,7 @@ write_rbrac () ...@@ -417,7 +417,7 @@ write_rbrac ()
if (required_unseen_count) if (required_unseen_count)
{ {
#ifdef NO_IMPLICIT_EXTERN_C #ifdef NO_IMPLICIT_EXTERN_C
fprintf (outf, "}\n"); fprintf (outf, "#ifdef __cplusplus\n}\n#endif\n");
#endif #endif
fprintf (outf, fprintf (outf,
"#endif /* defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__*/\n"); "#endif /* defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__*/\n");
......
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