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:
parent
ca978b3d21
commit
ca7c1f89dc
@ -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_
|
||||||
|
Loading…
Reference in New Issue
Block a user