Workaround deprecation warning on Clang with C++20

pull/2499/head
offa 3 years ago
parent 7130676697
commit 06f9953fa8

@ -15,7 +15,14 @@
# define FMT_HEADER_ONLY # define FMT_HEADER_ONLY
# endif # endif
# 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> # include <spdlog/fmt/bundled/chrono.h>
# if __cplusplus >= 202002L && defined(__clang__)
# pragma clang diagnostic pop
# endif
# else # else
# include <fmt/chrono.h> # include <fmt/chrono.h>
# endif # endif

Loading…
Cancel
Save