Commit cfeda197 by Richard Kenner

Don't define wchar_t if __cplusplus is defined.

From-SVN: r10246
parent 4ba09fc9
...@@ -237,6 +237,7 @@ typedef _BSD_RUNE_T_ rune_t; ...@@ -237,6 +237,7 @@ typedef _BSD_RUNE_T_ rune_t;
#ifndef __WCHAR_TYPE__ #ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int #define __WCHAR_TYPE__ int
#endif #endif
#ifndef __cplusplus
typedef __WCHAR_TYPE__ wchar_t; typedef __WCHAR_TYPE__ wchar_t;
#endif #endif
#endif #endif
...@@ -250,6 +251,7 @@ typedef __WCHAR_TYPE__ wchar_t; ...@@ -250,6 +251,7 @@ typedef __WCHAR_TYPE__ wchar_t;
#endif #endif
#endif #endif
#endif #endif
#endif
#undef __need_wchar_t #undef __need_wchar_t
#endif /* _STDDEF_H or __need_wchar_t. */ #endif /* _STDDEF_H or __need_wchar_t. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment