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 GitHub
parent ca978b3d21
commit 91270b69b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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_