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
ffc1e7b2
Commit
ffc1e7b2
authored
Jan 11, 1996
by
Doug Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixincludes: Wrap rpc/types.h in extern "C", for osf2.0.
From-SVN: r10961
parent
f9da1f35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
gcc/fixincludes
+35
-0
No files found.
gcc/fixincludes
View file @
ffc1e7b2
...
...
@@ -1782,6 +1782,41 @@ if [ -r ${LIB}/$file ]; then
fi
fi
# rpc/types.h on OSF1/2.0 is not C++ ready, even though NO_IMPLICIT_EXTERN_C
# is defined for the alpha. The problem is the declaration of malloc.
file
=
rpc/types.h
ls
-l
$file
${
LIB
}
/
$file
if
[
-r
$file
]
&&
[
!
-r
${
LIB
}
/
$file
]
;
then
mkdir
${
LIB
}
/rpc 2>/dev/null
cp
$file
${
LIB
}
/
$file
>
/dev/null 2>&1
||
echo
"Can't copy
$file
"
chmod +w
${
LIB
}
/
$file
2>/dev/null
chmod a+r
${
LIB
}
/
$file
2>/dev/null
fi
if
[
-r
${
LIB
}
/
$file
]
;
then
if
egrep
'"C"'
${
LIB
}
/
$file
>
/dev/null 2>&1
;
then
true
else
echo
Fixing
$file
echo
'#ifdef __cplusplus
extern "C" {
#endif'
>
${
LIB
}
/
${
file
}
.sed
cat
${
LIB
}
/
${
file
}
>>
${
LIB
}
/
${
file
}
.sed
echo
'#ifdef __cplusplus
}
#endif'
>>
${
LIB
}
/
${
file
}
.sed
rm
-f
${
LIB
}
/
$file
;
mv
${
LIB
}
/
${
file
}
.sed
${
LIB
}
/
$file
if
cmp
$file
${
LIB
}
/
$file
>
/dev/null 2>&1
;
then
rm
-f
${
LIB
}
/
$file
else
# Find any include directives that use "file".
for
include
in
`
egrep
'^[ ]*#[ ]*include[ ]*"[^/]'
${
LIB
}
/
$file
| sed
-e
's/^[ ]*#[ ]*include[ ]*"\([^"]*\)".*$/\1/'
`
;
do
dir
=
`
echo
$file
| sed
-e
s
'|/[^/]*$||'
`
required
=
"
$required
${
INPUT
}
$dir
/
$include
${
LIB
}
/
$dir
/
$include
"
done
fi
fi
fi
# In limits.h, put #ifndefs around things that are supposed to be defined
# in float.h to avoid redefinition errors if float.h is included first.
# On HP/UX this patch does not work, because on HP/UX limits.h uses
...
...
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