summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-05-17 07:39:59 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-05-17 07:39:59 -0400
commit3464bdc413204d5998959cabee1e9cef29bf6863 (patch)
treeba552f1aa162024718e6344e3f6708f8ce0c6b66
parent30eca391336b5bcf4706b8046c4c62f701e289fd (diff)
downloadgcc-3464bdc413204d5998959cabee1e9cef29bf6863.tar.gz
If need_wint_t defined, nothing in this file is needed.
(_WINT_T, __WINT__TYPE__, wint_t): Define under certain circumstances. From-SVN: r11977
-rw-r--r--gcc/ginclude/stddef.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h
index af3071fbfe7..6607aa76286 100644
--- a/gcc/ginclude/stddef.h
+++ b/gcc/ginclude/stddef.h
@@ -7,7 +7,8 @@
wants us just to define one data type. So don't define
the symbols that indicate this file's entire job has been done. */
#if (!defined(__need_wchar_t) && !defined(__need_size_t) \
- && !defined(__need_ptrdiff_t) && !defined(__need_NULL))
+ && !defined(__need_ptrdiff_t) && !defined(__need_NULL) \
+ && !defined(__need_wint_t))
#define _STDDEF_H
#define _STDDEF_H_
/* snaroff@next.com says the NeXT needs this. */
@@ -255,6 +256,19 @@ typedef __WCHAR_TYPE__ wchar_t;
#undef __need_wchar_t
#endif /* _STDDEF_H or __need_wchar_t. */
+#if defined (_STDDEF_H) || defined (__need_wint_t)
+#ifndef _WINT_T
+#define _WINT_T
+
+#ifndef __WINT_TYPE__
+#define __WINT_TYPE__ unsigned int
+#endif
+#ifndef __cplusplus
+typedef __WINT_TYPE__ wint_t;
+#endif
+#endif
+#endif
+
/* In 4.3bsd-net2, leave these undefined to indicate that size_t, etc.
are already defined. */
#ifdef _ANSI_H_