Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b4e21e27
Commit
b4e21e27
authored
Aug 11, 1994
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If NO_IMPLICIT_EXTERN_C is defined, add extern "C" { ... }.
From-SVN: r7894
parent
a3f2d1ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
gcc/fix-header.c
+14
-4
No files found.
gcc/fix-header.c
View file @
b4e21e27
...
...
@@ -381,8 +381,13 @@ write_rbrac ()
char
**
rptr
;
if
(
required_unseen_count
)
fprintf
(
outf
,
"#if defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__)
\n
"
);
{
fprintf
(
outf
,
"#if defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__)
\n
"
);
#ifdef NO_IMPLICIT_EXTERN_C
fprintf
(
outf
,
"extern
\"
C
\"
{
\n
"
);
#endif
}
/* Now we print out prototypes for those functions that we haven't seen. */
for
(
rptr
=
required_functions
;
*
rptr
;
rptr
++
)
...
...
@@ -410,8 +415,13 @@ write_rbrac ()
fprintf
(
outf
,
"#endif
\n
"
);
}
if
(
required_unseen_count
)
fprintf
(
outf
,
"#endif /* defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__*/
\n
"
);
{
#ifdef NO_IMPLICIT_EXTERN_C
fprintf
(
outf
,
"}
\n
"
);
#endif
fprintf
(
outf
,
"#endif /* defined(__cplusplus) || defined(__USE_FIXED_PROTOTYPES__*/
\n
"
);
}
switch
(
special_file_handling
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment