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.
This commit is contained in:
Ronny Krüger 2019-05-05 21:42:47 +02:00 committed by Victor Zverovich
parent ca978b3d21
commit ca7c1f89dc

View File

@ -10,6 +10,10 @@
#include "chrono.h" #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 #warning fmt/time.h is deprecated, use fmt/chrono.h instead
#endif
#endif // FMT_TIME_H_ #endif // FMT_TIME_H_