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:
Xiang Xiao
2018-08-27 06:26:37 -06:00
committed by Gregory Nutt
parent e2e0911bc4
commit 894ca622e6
3 changed files with 24 additions and 13 deletions
+13
View File
@@ -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.