projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e6e69
)
entered into RCS
author
Richard Stallman
<rms@gnu.org>
Tue, 28 Jul 1992 05:36:01 +0000
(
05:36
+0000)
committer
Richard Stallman
<rms@gnu.org>
Tue, 28 Jul 1992 05:36:01 +0000
(
05:36
+0000)
From-SVN: r1703
gcc/ginclude/stddef.h
patch
|
blob
|
history
diff --git
a/gcc/ginclude/stddef.h
b/gcc/ginclude/stddef.h
index 7eeb2288708fc25a86e686df8e65002b20640ccb..188687336ef797c23df0aba8356ae87f0b62f6fd 100644
(file)
--- a/
gcc/ginclude/stddef.h
+++ b/
gcc/ginclude/stddef.h
@@
-118,6
+118,12
@@
typedef __SIZE_TYPE__ size_t;
#ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int
#endif
+#ifdef __GNUG__
+/* In C++, wchar_t is a distinct basic type,
+ and we can expect __wchar_t to be defined by cc1plus. */
+typedef __wchar_t wchar_t;
+#else
+/* In C, cpp tells us which type to make an alias for. */
typedef __WCHAR_TYPE__ wchar_t;
#endif
#endif
@@
-126,6
+132,7
@@
typedef __WCHAR_TYPE__ wchar_t;
#endif
#endif
#endif
+#endif
#undef __need_wchar_t
#endif /* _STDDEF_H or __need_wchar_t. */