mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
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:
+6
-1
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user