aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-03-24 11:25:46 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-03-24 11:25:46 +0000
commitc543d983fab4b9855ffe159d4ed9a31f8e41864f (patch)
tree36338a04e8b50b4ccfbc489d7b0d173075ecddd8
parent06bce47d34a1b69eca39ae7ea0873713d63a9234 (diff)
Notes
-rw-r--r--sys/alpha/include/ansi.h3
-rw-r--r--sys/arm/include/ansi.h3
-rw-r--r--sys/i386/include/ansi.h3
-rw-r--r--sys/ia64/include/ansi.h6
-rw-r--r--sys/powerpc/include/ansi.h3
-rw-r--r--sys/sparc64/include/ansi.h3
6 files changed, 15 insertions, 6 deletions
diff --git a/sys/alpha/include/ansi.h b/sys/alpha/include/ansi.h
index eccfad93ea63e..0526982f4a06a 100644
--- a/sys/alpha/include/ansi.h
+++ b/sys/alpha/include/ansi.h
@@ -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
diff --git a/sys/arm/include/ansi.h b/sys/arm/include/ansi.h
index 8e7a9bd60c632..8d5cdbaef5b14 100644
--- a/sys/arm/include/ansi.h
+++ b/sys/arm/include/ansi.h
@@ -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
diff --git a/sys/i386/include/ansi.h b/sys/i386/include/ansi.h
index 788db09772eaf..7af5de2ab79b5 100644
--- a/sys/i386/include/ansi.h
+++ b/sys/i386/include/ansi.h
@@ -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
diff --git a/sys/ia64/include/ansi.h b/sys/ia64/include/ansi.h
index 6c15635621abe..7ab82108bc82c 100644
--- a/sys/ia64/include/ansi.h
+++ b/sys/ia64/include/ansi.h
@@ -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
diff --git a/sys/powerpc/include/ansi.h b/sys/powerpc/include/ansi.h
index 0c31d4d0d917d..838502cc0efce 100644
--- a/sys/powerpc/include/ansi.h
+++ b/sys/powerpc/include/ansi.h
@@ -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
diff --git a/sys/sparc64/include/ansi.h b/sys/sparc64/include/ansi.h
index 8b3092c8baccd..e99a79dcef6ef 100644
--- a/sys/sparc64/include/ansi.h
+++ b/sys/sparc64/include/ansi.h
@@ -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