From ca7c1f89dc5830b8fa73c26736ee4d387d079812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ronny=20Kr=C3=BCger?= Date: Sun, 5 May 2019 21:42:47 +0200 Subject: [PATCH] Fixed a compile error under MSVC. The #warning directive is not supported by MSVC. To still get a message to the user we use #pragma message() under MSVC now. --- include/fmt/time.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/time.h b/include/fmt/time.h index 840c8cf7..80fe6e42 100644 --- a/include/fmt/time.h +++ b/include/fmt/time.h @@ -10,6 +10,10 @@ #include "chrono.h" +#ifdef _MSC_VER +#pragma message("fmt/time.h is deprecated, use fmt/chrono.h instead") +#else #warning fmt/time.h is deprecated, use fmt/chrono.h instead +#endif #endif // FMT_TIME_H_