aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-08-08 19:50:27 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-08-08 19:50:27 -0400
commit1a19d593a044bd8894447331cc1174fcc3f9cf09 (patch)
treeeabc2b90dd3a28b53ebfda8670dce3dd5dc9128a /gcc/fix-header.c
parentfbcd3360678c348338fefdf6767dcdf376835e80 (diff)
downloadgcc-1a19d593a044bd8894447331cc1174fcc3f9cf09.zip
gcc-1a19d593a044bd8894447331cc1174fcc3f9cf09.tar.gz
gcc-1a19d593a044bd8894447331cc1174fcc3f9cf09.tar.bz2
(write_rbrac): Set up to use fixed headers if __USE_FIXED_HEADERS__ is
defined. From-SVN: r7878
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 33a8a4d..421992a 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)
{