Add support for "__gnuc_va_list". Some overly "smart" libraries assume

the existence of the __gnuc_va_list type[*] because our compiler is GCC.

[*] __gnuc_va_list is defined in the GCC ginclude/stdarg.h replacement
headerwhich we don't use.
This commit is contained in:
David E. O'Brien 2001-10-18 00:27:39 +00:00
parent a3fc3de448
commit 4a3391b5a1
5 changed files with 28 additions and 5 deletions

View File

@ -72,8 +72,11 @@
#define _BSD_OFF_T_ long /* file offset */
#define _BSD_PID_T_ int /* process [group] */
#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
#if defined __GNUC__
#if (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
#endif
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#else
typedef struct {
char *__base;

View File

@ -70,7 +70,15 @@
#define _BSD_CT_RUNE_T_ int /* arg type for ctype funcs */
#define _BSD_OFF_T_ __int64_t /* file offset */
#define _BSD_PID_T_ int /* process [group] */
#if defined __GNUC__
#if (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
#endif
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#else
#define _BSD_VA_LIST_ char * /* va_list */
#endif /*__GNUC__*/
/*
* The rune type above is declared to be an ``int'' instead of the more natural

View File

@ -71,7 +71,13 @@
#define _BSD_CT_RUNE_T_ int /* arg type for ctype funcs */
#define _BSD_OFF_T_ long /* file offset */
#define _BSD_PID_T_ int /* process [group] */
#define _BSD_VA_LIST_ __builtin_va_list /* va_list */
#if defined __GNUC__
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#else
#error Must add va_list support for this non-GCC compiler.
#endif /*__GNUC__*/
/*
* The rune type above is declared to be an ``int'' instead of the more natural

View File

@ -71,8 +71,11 @@
#define _BSD_OFF_T_ __int64_t /* file offset */
#define _BSD_PID_T_ int /* process [group] */
#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
#if defined __GNUC__
#if (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
#endif
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#else
typedef struct {
char __gpr;

View File

@ -72,8 +72,11 @@
#define _BSD_OFF_T_ long /* file offset */
#define _BSD_PID_T_ int /* process [group] */
#if defined __GNUC__ && (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
#if defined __GNUC__
#if (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
#endif
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#else
#define _BSD_VA_LIST_ char * /* va_list */
#endif /*__GNUC__*/