Skip to content

Commit

Permalink
avoid redefine (alibaba#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
qicosmos committed Nov 20, 2023
1 parent 4c6f2d6 commit 377fa9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/ylt/easylog.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,7 @@ inline void add_appender(std::function<void(std::string_view)> fn) {
#if __has_include(<fmt/format.h>)
#define ELOGFMT_IMPL(severity, Id, ...) \
ELOGFMT_IMPL0(severity, Id, fmt, __VA_ARGS__)
#endif

#if __has_include(<format>)
#else
#define ELOGFMT_IMPL(severity, Id, ...) \
ELOGFMT_IMPL0(severity, Id, std, __VA_ARGS__)
#endif
Expand Down

0 comments on commit 377fa9f

Please sign in to comment.