If _ANSI_H_, undef _PTRDIFF_T_, _SIZE_T_, _WCHAR_T.
authorRichard Stallman <rms@gnu.org>
Thu, 1 Oct 1992 06:11:57 +0000 (06:11 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 1 Oct 1992 06:11:57 +0000 (06:11 +0000)
From-SVN: r2291

gcc/ginclude/stddef.h

index 188687336ef797c23df0aba8356ae87f0b62f6fd..f2e62de38e172e353839341902579fb3ef6e5f8a 100644 (file)
 /* 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