diff --git a/testlib.h b/testlib.h index 5fece7b..cbc1074 100644 --- a/testlib.h +++ b/testlib.h @@ -25,7 +25,7 @@ * Copyright (c) 2005-2024 */ -#define VERSION "0.9.44-SNAPSHOT" +#define VERSION "0.9.44" /* * Mike Mirzayanov @@ -6228,15 +6228,17 @@ std::string testlib_format_(const std::string fmt, ...) { #if __cplusplus >= 202002L && __has_include() # include #else -std::string format(const char *fmt, ...) { - FMT_TO_RESULT(fmt, fmt, result); - return result; -} +# ifndef __cpp_lib_format + std::string format(const char *fmt, ...) { + FMT_TO_RESULT(fmt, fmt, result); + return result; + } -std::string format(const std::string fmt, ...) { - FMT_TO_RESULT(fmt, fmt.c_str(), result); - return result; -} + std::string format(const std::string fmt, ...) { + FMT_TO_RESULT(fmt, fmt.c_str(), result); + return result; + } +#endif #endif #endif