fix: change the find order in PyCodec.

- now PyCodec will try to use Iconv first.
- re-claim the meaning of YYCC_FEAT_ICONV macro.
This commit is contained in:
2025-08-05 14:04:20 +08:00
parent fcac886f07
commit 17540072d3
4 changed files with 11 additions and 8 deletions

View File

@ -48,7 +48,7 @@ namespace yycc::encoding::iconv {
template<typename T>
using ConvResult = std::expected<T, ConvError>;
#if YYCC_FEAT_ICONV || !defined(YYCC_OS_WINDOWS)
#if defined(YYCC_FEAT_ICONV)
/// @brief Char -> UTF8
class CharToUtf8 {