split codes of "char type" to CharType.h

This commit is contained in:
2020-04-13 15:32:22 +08:00
parent 0cdc519ee6
commit d53a65b242
6 changed files with 28 additions and 33 deletions

View File

@@ -2,15 +2,8 @@
#define HGL_OS_BSD_INCLUDE
#include<limits.h>
#include<hgl/platform/os/CharType.h>
//--------------------------------------------------------------------------------------------------
using u32char =char32_t;
using u16char =char16_t;
using os_char =char;
#define to_oschar to_u8
#define OS_TEXT(str) u8##str
#define U8_TEXT(str) u8##str
#define U16_TEXT(str) u##str
#if defined(__FreeBSD__)||defined(__FreeBSD)
#define HGL_OS_NAME OS_TEXT("FreeBSD")
#define HGL_LIB_OS_NAME "FreeBSD"