mescc: Mes C Library: Support GNU Awk: Add wchar_t.

* include/sys/types.h (wchar_t): New typedef.
This commit is contained in:
Jan Nieuwenhuizen 2019-01-05 12:23:49 +01:00
parent a652026c08
commit 27045d21dc
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 9 additions and 4 deletions

View File

@ -135,6 +135,15 @@ typedef long ssize_t;
typedef unsigned uid_t;
#endif
#ifndef __WCHAR_T
#define __WCHAR_T
#ifndef __MES_WCHAR_T
#define __MES_WCHAR_T
#undef wchar_t
typedef int wchar_t;
#endif
#endif
#endif // ! WITH_GLIBC
#endif // __MES_SYS_TYPES_H

View File

@ -20,9 +20,6 @@
#include <stdlib.h>
#if !__MESC__
typedef char wchar_t[];
size_t
mbstowcs (wchar_t *wstring, char const *string,
size_t size)
@ -34,4 +31,3 @@ mbstowcs (wchar_t *wstring, char const *string,
strcpy (wstring, string);
return strlen (string);
}
#endif