Guard against redefining __gnuc_va_list.

This commit is contained in:
David E. O'Brien 2002-03-24 11:25:46 +00:00
parent 06bce47d34
commit c543d983fa
6 changed files with 15 additions and 6 deletions

View File

@ -81,7 +81,8 @@ typedef struct {
} __va_list;
#define _BSD_VA_LIST_ __va_list /* va_list */
#endif /* post GCC 2.95 */
#ifdef __GNUC__
#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
#define __GNUC_VA_LIST
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#endif

View File

@ -74,7 +74,8 @@
#else
#define _BSD_VA_LIST_ char * /* va_list */
#endif /* post GCC 2.95 */
#ifdef __GNUC__
#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
#define __GNUC_VA_LIST
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#endif

View File

@ -75,7 +75,8 @@
#else
#define _BSD_VA_LIST_ char * /* va_list */
#endif /* post GCC 2.95 */
#ifdef __GNUC__
#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
#define __GNUC_VA_LIST
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#endif

View File

@ -73,10 +73,14 @@
#ifdef __GNUC__
#define _BSD_VA_LIST_ __builtin_va_list /* internally known to gcc */
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
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__*/
#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
#define __GNUC_VA_LIST
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#endif
/*
* The rune type above is declared to be an ``int'' instead of the more natural

View File

@ -82,7 +82,8 @@ typedef struct {
} __va_list;
#define _BSD_VA_LIST_ __va_list /* va_list */
#endif /* post GCC 2.95 */
#ifdef __GNUC__
#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
#define __GNUC_VA_LIST
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#endif

View File

@ -76,7 +76,8 @@
#else
#define _BSD_VA_LIST_ char * /* va_list */
#endif /* post GCC 2.95 */
#ifdef __GNUC__
#if defined __GNUC__ && !defined(__GNUC_VA_LIST) && !defined(__NO_GNUC_VA_LIST)
#define __GNUC_VA_LIST
typedef _BSD_VA_LIST_ __gnuc_va_list; /* compatibility w/GNU headers*/
#endif