Guard against redefining __gnuc_va_list.
This commit is contained in:
parent
06bce47d34
commit
c543d983fa
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user