mescc: Mes C Library: Support GNU Awk: Add wchar_t.
* include/sys/types.h (wchar_t): New typedef.
This commit is contained in:
parent
f308c3f6bc
commit
640ec0a9ea
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue