mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Merge pull request #2499 from offa/clang_cpp20_workaround
Workaround deprecation warning on Clang with C++20
This commit is contained in:
commit
523a075f82
@ -15,7 +15,14 @@
|
||||
# define FMT_HEADER_ONLY
|
||||
# endif
|
||||
# endif
|
||||
# if __cplusplus >= 202002L && defined(__clang__)
|
||||
# pragma clang diagnostic push
|
||||
# pragma clang diagnostic ignored "-Wdeprecated" // Workaround for Clang C++20; remove once fmt >= 9.x
|
||||
# endif
|
||||
# include <spdlog/fmt/bundled/chrono.h>
|
||||
# if __cplusplus >= 202002L && defined(__clang__)
|
||||
# pragma clang diagnostic pop
|
||||
# endif
|
||||
# else
|
||||
# include <fmt/chrono.h>
|
||||
# endif
|
||||
|
Loading…
Reference in New Issue
Block a user