diff --git a/cliprogressbar.cpp b/cliprogressbar.cpp index 7f76d73c..97e02005 100644 --- a/cliprogressbar.cpp +++ b/cliprogressbar.cpp @@ -40,11 +40,15 @@ static std::unique_ptr create_progress_bar(int width, std::stri option::End("]"), option::FontStyles(std::vector({FontStyle::bold}))); - if constexpr (std::is_same_v) { - bar->set_option(option::Fill(fill)); - bar->set_option(option::Lead(lead)); - bar->set_option(option::Remainder(remainder)); - } +#ifdef WIN32 + bar->set_option(option::Fill(fill)); + bar->set_option(option::Lead(lead)); + bar->set_option(option::Remainder(remainder)); +#else + (void)fill; + (void)lead; + (void)remainder; +#endif return bar; }