summaryrefslogtreecommitdiff
path: root/gcc/ginclude
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-28 21:13:26 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-04-28 21:13:26 +0000
commit5599571a783d8f3a972dd88487c46c2af3acece0 (patch)
tree5a8b61cf4c80eaace0afa9545ac1c4acd9639a99 /gcc/ginclude
parentb4ffe23ab40219c84a80bdf46549fbec5249dae1 (diff)
downloadgcc-5599571a783d8f3a972dd88487c46c2af3acece0.tar.gz
Patch from Shigeya Suzuki to fix BSD/OS 3.1 build failure.
* ginclude/stddef.h: Add check for _MACHINE_ANSI_H_ for BSD/OS when undefining macros at the end. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19472 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude')
-rw-r--r--gcc/ginclude/stddef.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h
index 0fb57430bce..615052e85d4 100644
--- a/gcc/ginclude/stddef.h
+++ b/gcc/ginclude/stddef.h
@@ -284,7 +284,9 @@ typedef __WINT_TYPE__ wint_t;
/* In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
are already defined. */
-#ifdef _ANSI_H_
+/* BSD/OS 3.1 requires the MACHINE_ANSI_H check here. FreeBSD 2.x apparently
+ does not, even though there is a check for MACHINE_ANSI_H above. */
+#if defined(_ANSI_H_) || (defined(__bsdi__) && defined(_MACHINE_ANSI_H_))
/* The references to _GCC_PTRDIFF_T_, _GCC_SIZE_T_, and _GCC_WCHAR_T_
are probably typos and should be removed before 2.8 is released. */
#ifdef _GCC_PTRDIFF_T_
@@ -312,7 +314,7 @@ typedef __WINT_TYPE__ wint_t;
#undef _WCHAR_T_
#undef _BSD_WCHAR_T_
#endif
-#endif /* _ANSI_H_ */
+#endif /* _ANSI_H_ || ( __bsdi__ && _MACHINE_ANSI_H_ ) */
#endif /* __sys_stdtypes_h */