add OSCharSet macro

This commit is contained in:
2020-10-10 15:44:36 +08:00
parent d79e3d0219
commit c2a7691e5b

View File

@@ -144,6 +144,12 @@ namespace hgl
extern CharSet UTF16LECharSet; extern CharSet UTF16LECharSet;
extern CharSet UTF16BECharSet; extern CharSet UTF16BECharSet;
#if HGL_OS == HGL_OS_Windows
#define OSCharSet UTF16LECharSet
#else
#define OSCharSet UTF8CharSet
#endif//
/** /**
* 使用指定字符集转换字符串到 u16char *字符串 * 使用指定字符集转换字符串到 u16char *字符串
* @param charset 字符集 * @param charset 字符集