diff --git a/lib/libimhex/include/hex/helpers/fmt.hpp b/lib/libimhex/include/hex/helpers/fmt.hpp index 734c167fc..7245a87aa 100644 --- a/lib/libimhex/include/hex/helpers/fmt.hpp +++ b/lib/libimhex/include/hex/helpers/fmt.hpp @@ -18,7 +18,10 @@ namespace hex { template inline void println(std::string_view format, Args... args) { - fmt::println(fmt::runtime(format), args...); + if constexpr (requires { fmt::println(fmt::runtime(format), args...); }) + fmt::println(fmt::runtime(format), args...); + else + fmt::print(fmt::runtime(format), args...); } } \ No newline at end of file