Hi:
The KDS define unicode string as 4bytes length, but which will waste 2bytes for one character.
How to define Unicode character for 2bytes? thx.
in <stddef.h>, there is definition.
#ifndef __WCHAR_TYPE__
#define __WCHAR_TYPE__ int
#endif
#ifndef __cplusplus
typedef __WCHAR_TYPE__ wchar_t;
Solved! Go to Solution.
I found one solution from previous topic:
add below compile parameter for GCC,
-fshort-wchar
I found one solution from previous topic:
add below compile parameter for GCC,
-fshort-wchar