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
1997cb46
Commit
1997cb46
authored
Jun 22, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect va_list definition from SCO headers.
From-SVN: r14286
parent
8458d268
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
gcc/ginclude/stdarg.h
+4
-1
gcc/ginclude/varargs.h
+4
-1
No files found.
gcc/ginclude/stdarg.h
View file @
1997cb46
...
...
@@ -136,7 +136,7 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
#undef _BSD_VA_LIST
#endif
#if defined(__svr4__) ||
defined(_SCO_DS
)
#if defined(__svr4__) ||
(defined(_SCO_DS) && !defined(__VA_LIST)
)
/* SVR4.2 uses _VA_LIST for an internal alias for va_list,
so we must avoid testing it and setting it here.
SVR4 uses _VA_LIST as a flag in stdarg.h, but we should
...
...
@@ -149,6 +149,9 @@ void va_end (__gnuc_va_list); /* Defined in libgcc.a */
#endif
#endif
/* __i860__ */
typedef
__gnuc_va_list
va_list
;
#ifdef _SCO_DS
#define __VA_LIST
#endif
#endif
/* _VA_LIST_ */
#else
/* not __svr4__ || _SCO_DS */
...
...
gcc/ginclude/varargs.h
View file @
1997cb46
...
...
@@ -146,7 +146,7 @@ typedef void *__gnuc_va_list;
#undef _VA_LIST
#endif
#if defined(__svr4__) ||
defined(_SCO_DS
)
#if defined(__svr4__) ||
(defined(_SCO_DS) && !defined(__VA_LIST)
)
/* SVR4.2 uses _VA_LIST for an internal alias for va_list,
so we must avoid testing it and setting it here.
SVR4 uses _VA_LIST as a flag in stdarg.h, but we should
...
...
@@ -159,6 +159,9 @@ typedef void *__gnuc_va_list;
#endif
#endif
/* __i860__ */
typedef
__gnuc_va_list
va_list
;
#ifdef _SCO_DS
#define __VA_LIST
#endif
#endif
/* _VA_LIST_ */
#else
/* not __svr4__ || _SCO_DS */
...
...
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