diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-29 14:26:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-11-29 14:26:12 +0000 |
commit | 2ff21a4ebbe5385a702567220d6287b66cd9328b (patch) | |
tree | 349f1810aca17c286eef47de73598a27dd781d52 /nuttx/include | |
parent | bc04273fb6fc7ea5392b69001e9a597f8996a65b (diff) | |
download | px4-nuttx-2ff21a4ebbe5385a702567220d6287b66cd9328b.tar.gz px4-nuttx-2ff21a4ebbe5385a702567220d6287b66cd9328b.tar.bz2 px4-nuttx-2ff21a4ebbe5385a702567220d6287b66cd9328b.zip |
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
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/sys/types.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nuttx/include/sys/types.h b/nuttx/include/sys/types.h index f505c6afa..0c6f72394 100644 --- a/nuttx/include/sys/types.h +++ b/nuttx/include/sys/types.h @@ -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. * |