From: Richard Stallman Date: Thu, 1 Oct 1992 06:11:57 +0000 (+0000) Subject: If _ANSI_H_, undef _PTRDIFF_T_, _SIZE_T_, _WCHAR_T. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09dafdadf00eb5a4dc940788316b22558e71d29a;p=gcc.git If _ANSI_H_, undef _PTRDIFF_T_, _SIZE_T_, _WCHAR_T. From-SVN: r2291 --- diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h index 188687336ef..f2e62de38e1 100644 --- a/gcc/ginclude/stddef.h +++ b/gcc/ginclude/stddef.h @@ -14,6 +14,14 @@ /* This avoids lossage on SunOS but only if stdtypes.h comes first. There's no way to win with the other order! Sun lossage. */ +/* In 4.3bsd-net2, machine/ansi.h defines these symbols for some other + purpose. Undef them to prevent them from confusing this file. */ +#ifdef _ANSI_H_ +#undef _PTRDIFF_T_ +#undef _SIZE_T_ +#undef _WCHAR_T_ +#endif + /* In case nobody has defined these types, but we aren't running under GCC 2.00, make sure that __PTRDIFF_TYPE__, __SIZE__TYPE__, and __WCHAR_TYPE__ have reasonable values. This can happen if the