aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1994-08-11 15:18:53 -0700
committerPer Bothner <bothner@gcc.gnu.org>1994-08-11 15:18:53 -0700
commit55e2b88efc7bb896ef7b6b164500c79e7ca727e6 (patch)
treeba9cf459208911b7d48332e80107aba7d0f75f06 /gcc/fix-header.c
parent861dfa94144f976a6b4bbf36231c1cb5f71f6034 (diff)
downloadgcc-55e2b88efc7bb896ef7b6b164500c79e7ca727e6.zip
gcc-55e2b88efc7bb896ef7b6b164500c79e7ca727e6.tar.gz
gcc-55e2b88efc7bb896ef7b6b164500c79e7ca727e6.tar.bz2
Fix to previous check-in.
From-SVN: r7898
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index eba15fa..c21acf0 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -385,7 +385,7 @@ write_rbrac ()
fprintf (outf,
"#if defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__)\n");
#ifdef NO_IMPLICIT_EXTERN_C
- fprintf (outf, "extern \"C\" {\n");
+ fprintf (outf, "#ifdef __cplusplus\nextern \"C\" {\n#endif\n");
#endif
}
@@ -417,7 +417,7 @@ write_rbrac ()
if (required_unseen_count)
{
#ifdef NO_IMPLICIT_EXTERN_C
- fprintf (outf, "}\n");
+ fprintf (outf, "#ifdef __cplusplus\n}\n#endif\n");
#endif
fprintf (outf,
"#endif /* defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__*/\n");