cld2: fix HAVE_CLD2 test
It _is_ defined (as 0) when there is no CLD2.
This commit is contained in:
@ -591,7 +591,7 @@ process_message(const MimeMessage& mime_msg, const std::string& path,
|
||||
if (info.mailing_list)
|
||||
info.flags |= Flags::MailingList;
|
||||
|
||||
#ifdef HAVE_CLD2
|
||||
#if HAVE_CLD2
|
||||
/* language detection requires the cld2 lib */
|
||||
if (info.body_txt) { /* attempt to get the body-language */
|
||||
if (const auto lang{detect_language(info.body_txt.value())}; lang) {
|
||||
|
||||
Reference in New Issue
Block a user