aboutsummaryrefslogtreecommitdiff
path: root/gcc/ginclude
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ginclude')
-rw-r--r--gcc/ginclude/stdarg.h7
-rw-r--r--gcc/ginclude/varargs.h8
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h
index f178505e892..203a2174980 100644
--- a/gcc/ginclude/stdarg.h
+++ b/gcc/ginclude/stdarg.h
@@ -28,6 +28,11 @@ Boston, MA 02111-1307, USA. */
* ISO C Standard: 7.15 Variable arguments <stdarg.h>
*/
+/* APPLE LOCAL begin MW compatibility */
+#ifdef __MWERKS__
+#include "mw_stdarg.h"
+#else
+/* APPLE LOCAL end MW compatibility */
#ifndef _STDARG_H
#ifndef _ANSI_STDARG_H_
#ifndef __need___va_list
@@ -131,3 +136,5 @@ typedef __gnuc_va_list va_list;
#endif /* not _ANSI_STDARG_H_ */
#endif /* not _STDARG_H */
+/* APPLE LOCAL MW compatibility */
+#endif /* __MWERKS__ */
diff --git a/gcc/ginclude/varargs.h b/gcc/ginclude/varargs.h
index 4b9803e71ac..a25a3628787 100644
--- a/gcc/ginclude/varargs.h
+++ b/gcc/ginclude/varargs.h
@@ -1,3 +1,9 @@
+/* APPLE LOCAL begin MW compatibility */
+#ifdef __MWERKS__
+#include "mw_varargs.h"
+#else
+/* APPLE LOCAL end MW compatibility */
+
#ifndef _VARARGS_H
#define _VARARGS_H
@@ -5,3 +11,5 @@
#error "Revise your code to use <stdarg.h>."
#endif
+/* APPLE LOCAL MW compatibility */
+#endif /* __MWERKS__ */