Skip to content

Commit

Permalink
fix macos issue?
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMirzayanov committed Sep 22, 2024
1 parent 5f898aa commit 4df0ed8
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions testlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
* Copyright (c) 2005-2024
*/

#define VERSION "0.9.44-SNAPSHOT"
#define VERSION "0.9.44"

/*
* Mike Mirzayanov
Expand Down Expand Up @@ -6228,15 +6228,17 @@ std::string testlib_format_(const std::string fmt, ...) {
#if __cplusplus >= 202002L && __has_include(<format>)
# include <format>
#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

0 comments on commit 4df0ed8

Please sign in to comment.