summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-01 06:11:57 +0000
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>1992-10-01 06:11:57 +0000
commitf100e763b7ecb64ae7f659ed0d433a38b7dbdd4f (patch)
tree2e15f1d1320ccb44bca3cc65bca8a3bac1c340e6 /gcc
parent75bededa517dbca6e259e2cf91467b83b69aaf79 (diff)
downloadgcc-f100e763b7ecb64ae7f659ed0d433a38b7dbdd4f.tar.gz
If _ANSI_H_, undef _PTRDIFF_T_, _SIZE_T_, _WCHAR_T.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2291 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ginclude/stddef.h8
1 files changed, 8 insertions, 0 deletions
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