diff --git a/src/reader_util.cpp b/src/reader_util.cpp index 4d1b3ed9..8718d22c 100644 --- a/src/reader_util.cpp +++ b/src/reader_util.cpp @@ -215,6 +215,8 @@ std::string ReaderUtil::GetEncoding(StringView ini_file) { return ReaderUtil::CodepageToEncoding(atoi(encoding.c_str())); } } +#else + Log::Warning("Could not get encoding from ini file, disabled in this liblcf build."); #endif return {}; } @@ -228,6 +230,8 @@ std::string ReaderUtil::GetEncoding(std::istream& filestream) { return ReaderUtil::CodepageToEncoding(atoi(encoding.c_str())); } } +#else + Log::Warning("Could not get encoding from ini file, disabled in this liblcf build."); #endif return {}; }