summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/ansi.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/powerpc/include/ansi.h')
-rw-r--r--sys/powerpc/include/ansi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/powerpc/include/ansi.h b/sys/powerpc/include/ansi.h
index 0c31d4d..838502cc 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
OpenPOWER on IntegriCloud