diff options
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r-- | gcc/fix-header.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c index 33a8a4d319a..421992ae297 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -381,7 +381,8 @@ write_rbrac () char **rptr; if (required_unseen_count) - fprintf (outf, "#ifdef __cplusplus\n"); + fprintf (outf, + "#if defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__)\n"); /* Now we print out prototypes for those functions that we haven't seen. */ for (rptr = required_functions; *rptr; rptr++) @@ -410,7 +411,7 @@ write_rbrac () } if (required_unseen_count) fprintf (outf, - "#endif /* defined(__cplusplus) */\n"); + "#endif /* defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__*/\n"); switch (special_file_handling) { |