Skip to content

Commit

Permalink
Fix build without tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaelers committed Dec 1, 2023
1 parent 6e1eeed commit 34c49f6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
13 changes: 1 addition & 12 deletions libs/utils/include/debug.hh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
# include <boost/noncopyable.hpp>
# include <string_view>
# include <array>
# include "utils/Logging.hh"

constexpr std::string_view
prettify_function(std::string_view func)
Expand Down Expand Up @@ -75,18 +76,6 @@ struct gen_fmt
static constexpr std::string_view value{arr.data(), arr.size() - 2};
};

# if FMT_VERSION < 80000

namespace fmt
{
inline auto runtime(std::string_view s) -> std::string_view
{
return s;
}
} // namespace fmt

# endif

class ScopedTrace : public boost::noncopyable
{
public:
Expand Down
13 changes: 13 additions & 0 deletions libs/utils/include/utils/Logging.hh
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,17 @@ struct fmt::formatter<std::atomic<T>> : fmt::formatter<T>

#endif

#if FMT_VERSION < 80000

namespace fmt
{
inline auto runtime(std::string_view s) -> std::string_view
{
return s;
}
} // namespace fmt

#endif


#endif // WORKAVE_LIBS_UTILS_LOGGING_HH
1 change: 1 addition & 0 deletions ui/app/toolkits/gtkmm/StatisticsDialog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#include "commonui/Text.hh"
#include "GtkUtil.hh"
#include "commonui/Locale.hh"
#include "utils/Logging.hh"

using namespace std;
using namespace workrave;
Expand Down

0 comments on commit 34c49f6

Please sign in to comment.