mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:50:05 +00:00
switch to using __cpp_lib_chrono to determine if chrono or date/date.h should be used
This commit is contained in:
parent
88246b26fe
commit
79e39021a6
14 changed files with 25 additions and 25 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
#if !defined(_MSC_VER)
|
||||
#if (__cpp_lib_chrono < 201907L)
|
||||
# include <date/tz.h>
|
||||
#endif
|
||||
|
||||
|
|
@ -15,7 +15,7 @@ namespace scwx
|
|||
namespace util
|
||||
{
|
||||
|
||||
#if (defined(_MSC_VER) || defined(__clang__))
|
||||
#if (__cpp_lib_chrono >= 201907L)
|
||||
typedef std::chrono::time_zone time_zone;
|
||||
#else
|
||||
typedef date::time_zone time_zone;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue