Revision: 10729 https://osdn.net/projects/ttssh2/scm/svn/commits/10729 Author: zmatsuo Date: 2023-06-04 01:46:05 +0900 (Sun, 04 Jun 2023) Log Message: ----------- コンパイラによっては警告が出るので修正 warning: identifier 'char8_t' is a keyword in C++20 [-Wc++20-compat] Modified Paths: -------------- trunk/teraterm/common/ttcstd.h -------------- next part -------------- Modified: trunk/teraterm/common/ttcstd.h =================================================================== --- trunk/teraterm/common/ttcstd.h 2023-06-03 16:45:56 UTC (rev 10728) +++ trunk/teraterm/common/ttcstd.h 2023-06-03 16:46:05 UTC (rev 10729) @@ -42,4 +42,6 @@ typedef unsigned long char32_t; // C++11 for UTF-32 typedef wchar_t char16_t; // C++11 for UTF-16 #endif +#if !defined(__cplusplus) || __cplusplus >= 202002L typedef unsigned char char8_t; // C++20 for UTF-8 +#endif