Skip to content

Commit

Permalink
Add support for C++20 without char8_t
Browse files Browse the repository at this point in the history
  • Loading branch information
BluTree authored and sheredom committed Oct 25, 2024
1 parent d2e35eb commit 8937f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utf8.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ extern "C" {
#define utf8_constexpr14_impl
#endif

#if defined(utf8_cplusplus) && utf8_cplusplus >= 202002L
#if defined(utf8_cplusplus) && utf8_cplusplus >= 202002L && defined(__cpp_char8_t)
using utf8_int8_t = char8_t; /* Introduced in C++20 */
#else
typedef char utf8_int8_t;
Expand Down

0 comments on commit 8937f18

Please sign in to comment.