mirror of
https://github.com/apache/nuttx.git
synced 2026-09-22 22:55:02 +08:00
nclude/sys/types: Move wint_t and wctype_t from wchar.h to types.h. This change is compatible as before since wchar.h include types.h indirectly. This fixes a compilation error with newlib's math.h: 'unknown type name wint_t'
This commit is contained in:
@@ -204,6 +204,19 @@ typedef intptr_t ptrdiff_t;
|
||||
typedef uint16_t wchar_t;
|
||||
#endif
|
||||
|
||||
/* wint_t
|
||||
* An integral type capable of storing any valid value of wchar_t, or WEOF.
|
||||
*/
|
||||
|
||||
typedef int wint_t;
|
||||
|
||||
/* wctype_t
|
||||
* A scalar type of a data object that can hold values which represent
|
||||
* locale-specific character classification.
|
||||
*/
|
||||
|
||||
typedef int wctype_t;
|
||||
|
||||
/* blkcnt_t and off_t are signed integer types.
|
||||
*
|
||||
* blkcnt_t is used for file block counts.
|
||||
|
||||
Reference in New Issue
Block a user