diff --git a/inc/hgl/log/LogInfo.h b/inc/hgl/log/LogInfo.h index 873cd7d..e058019 100644 --- a/inc/hgl/log/LogInfo.h +++ b/inc/hgl/log/LogInfo.h @@ -34,11 +34,12 @@ namespace hgl std::cout<<(char *)str.c_str()<= 11 - using u8char = char8_t; -#else - using u8char = char; -#endif - - #define HGL_THREAD_LOCAL_STORAGE __thread //线程本地储存 //-------------------------------------------------------------------------------------------------- #define HGL_LIB_FRONT HGL_LIB_OS "_" HGL_LIB_COMPILER_NAME "_" HGL_LIB_DEBUG_NAME "_" diff --git a/inc/hgl/platform/compiler/Microsoft.h b/inc/hgl/platform/compiler/Microsoft.h index b44740e..bceeac8 100644 --- a/inc/hgl/platform/compiler/Microsoft.h +++ b/inc/hgl/platform/compiler/Microsoft.h @@ -21,9 +21,10 @@ #define HGL_THREAD_LOCAL_STORAGE __declspec(thread) //线程本地储存 //-------------------------------------------------------------------------------------------------- #if _MSVC_LANG>=201704L //C++20 -using u8char =char8_t; + #define HGL_SUPPORT_CHAR8_T + using u8char =char8_t; #else -using u8char =char; + using u8char =char; #endif #define HGL_FMT_I64 "%I64d"