Skip to content

Commit

Permalink
Include fmt/base.h when available
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Apr 11, 2024
1 parent 9b51f5a commit 2acfe06
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@
#include <pika/type_support/detail/with_result_of.hpp>
#include <pika/type_support/pack.hpp>

#include <fmt/core.h>
#if __has_include(<fmt/base.h>)
# include <fmt/base.h>
#else
# include <fmt/core.h>
#endif
#include <fmt/ostream.h>
#include <fmt/printf.h>

Expand Down
1 change: 0 additions & 1 deletion libs/pika/logging/include/pika/logging/message.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <pika/config.hpp>
#include <pika/type_support/unused.hpp>

#include <fmt/core.h>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <fmt/printf.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@

#include <pika/config.hpp>

#include <fmt/core.h>
#if __has_include(<fmt/base.h>)
# include <fmt/base.h>
#else
# include <fmt/core.h>
#endif
#include <fmt/ostream.h>
#include <fmt/printf.h>

Expand Down
1 change: 0 additions & 1 deletion libs/pika/logging/src/format/formatter/thread_id.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <pika/config.hpp>

#include <fmt/core.h>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <fmt/printf.h>
Expand Down

0 comments on commit 2acfe06

Please sign in to comment.