fix: chinese opencc does not work on linux

This commit is contained in:
yifang 2022-01-29 09:27:32 +08:00
parent 0eb49e4a6b
commit f7b2f3151d
2 changed files with 2 additions and 4 deletions

View file

@ -274,7 +274,6 @@ Preferences::Preferences():
{ {
} }
#ifdef MAKE_CHINESE_CONVERSION_SUPPORT
Chinese::Chinese(): Chinese::Chinese():
enable( false ), enable( false ),
enableSCToTWConversion( true ), enableSCToTWConversion( true ),
@ -282,7 +281,6 @@ Chinese::Chinese():
enableTCToSCConversion( true ) enableTCToSCConversion( true )
{ {
} }
#endif
Romaji::Romaji(): Romaji::Romaji():
enable( false ), enable( false ),

View file

@ -464,7 +464,7 @@ struct Hunspell
/// All the MediaWikis /// All the MediaWikis
typedef QVector< MediaWiki > MediaWikis; typedef QVector< MediaWiki > MediaWikis;
#ifdef MAKE_CHINESE_CONVERSION_SUPPORT
/// Chinese transliteration configuration /// Chinese transliteration configuration
struct Chinese struct Chinese
{ {
@ -486,7 +486,7 @@ struct Chinese
{ return ! operator == ( other ); } { return ! operator == ( other ); }
}; };
#endif
/// Romaji transliteration configuration /// Romaji transliteration configuration
struct Romaji struct Romaji