wchar_t is a C++ built in and should not (always) be defined

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4128 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-11-29 14:26:12 +00:00
parent f4a014fc2f
commit 34f1a907b4
4 changed files with 18 additions and 6 deletions
+6 -1
View File
@@ -165,9 +165,14 @@ typedef unsigned int id_t;
typedef intptr_t ptrdiff_t;
/* Wide, 16-bit character types */
/* Wide, 16-bit character types. wchar_t is a built-in type in C++ and
* its declaration here may cause compilation errors on some compilers
* if -DCONFIG_WCHAR_BUILTIN is not included in the CXXFLAGS.
*/
#ifndef CONFIG_WCHAR_BUILTIN
typedef uint16_t wchar_t;
#endif
/* blkcnt_t and off_t are signed integer types.
*