OSDN Git Service

(write_rbrac): Make added declarations conditional
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Nov 1993 10:12:08 +0000 (10:12 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 21 Nov 1993 10:12:08 +0000 (10:12 +0000)
on __cplusplus and nothing else.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@6129 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fix-header.c

index 06fc092..b6de982 100644 (file)
@@ -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)
     {