Commit 1392020e by Eric Raskin Committed by Bruce Korb

fixinc.dgux: Use modified _int_varargs.h

From-SVN: r27231
parent 07515641
...@@ -2,6 +2,7 @@ Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com) ...@@ -2,6 +2,7 @@ Fri May 28 03:47:03 1999 Eric Raskin (ehr@listworks.com)
* i386/t-dgux (EXTRA_PARTS): Add crti.o * i386/t-dgux (EXTRA_PARTS): Add crti.o
(crti.o): Add build rule and dependencies. (crti.o): Add build rule and dependencies.
* fixinc/fixinc.dgux: Use modified _int_varargs.h
Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> Fri May 28 03:41:02 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
......
...@@ -142,24 +142,56 @@ if [ -r ${INPUT}/$file ]; then ...@@ -142,24 +142,56 @@ if [ -r ${INPUT}/$file ]; then
#ifndef __INT_VARARGS_H #ifndef __INT_VARARGS_H
#define __INT_VARARGS_H #define __INT_VARARGS_H
#if defined(__m88k__) && defined (__DGUX__) #ifndef ___int_features_h
#ifndef __GNUC_VA_LIST #include <sys/_int_features.h>
#define __GNUC_VA_LIST #endif
typedef struct
{ #if !(defined(_VA_LIST) || defined(_VA_LIST_))
#define _VA_LIST
#define _VA_LIST_
#ifdef __LINT__
#ifdef __STDC__
typedef void * va_list;
#else
typedef char * va_list;
#endif
#else
#if _M88K_ANY
#if defined(__DCC__)
typedef struct {
int next_arg;
int *mem_ptr;
int *reg_ptr;
} va_list;
#else /* ! defined(__DCC__) */
typedef struct {
int __va_arg; /* argument number */ int __va_arg; /* argument number */
int *__va_stk; /* start of args passed on stack */ int *__va_stk; /* start of args passed on stack */
int *__va_reg; /* start of args passed in regs */ int *__va_reg; /* start of args passed in regs */
} __gnuc_va_list; } va_list;
#endif /* not __GNUC_VA_LIST */
#endif /* 88k && dgux */
#ifndef _VA_LIST_ #endif /* ! defined(__DCC__) */
#define _VA_LIST_
typedef __gnuc_va_list va_list; #elif _IX86_ANY
#endif /* _VA_LIST_ */
#if defined(__GNUC__) || defined(__STDC__)
typedef void * va_list;
#else
typedef char * va_list;
#endif
#endif /* _IX86_ANY */
#endif /* __INT_VARARGS_H */ #endif /* __LINT__ */
#endif /* !(defined(_VA_LIST) || defined(_VA_LIST_)) */
#endif /* #ifndef __INT_VARARGS_H */
EOF EOF
chmod a+r ${LIB}/$file chmod a+r ${LIB}/$file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment