switch to using __cpp_lib_chrono to determine if chrono or date/date.h should be used

This commit is contained in:
AdenKoperczak 2024-09-22 12:02:38 -04:00
parent 88246b26fe
commit 79e39021a6
14 changed files with 25 additions and 25 deletions

View file

@ -5,7 +5,7 @@
#include <fmt/chrono.h>
#include <fmt/format.h>
#if !(defined(_MSC_VER) || defined(__clang__))
#if (__cpp_lib_chrono < 201907L)
# include <date/date.h>
#endif
@ -82,7 +82,7 @@ AwsLevel2DataProvider::GetTimePointFromKey(const std::string& key)
{
using namespace std::chrono;
#if !(defined(_MSC_VER) || defined(__clang__))
#if (__cpp_lib_chrono < 201907L)
using namespace date;
#endif

View file

@ -12,7 +12,7 @@
#include <fmt/chrono.h>
#include <fmt/format.h>
#if !(defined(_MSC_VER) || defined(__clang__))
#if (__cpp_lib_chrono < 201907L)
# include <date/date.h>
#endif
@ -110,7 +110,7 @@ AwsLevel3DataProvider::GetTimePointFromKey(const std::string& key)
{
using namespace std::chrono;
#if !(defined(_MSC_VER) || defined(__clang__))
#if (__cpp_lib_chrono < 201907L)
using namespace date;
#endif

View file

@ -14,7 +14,7 @@
#include <libxml/HTMLparser.h>
#include <re2/re2.h>
#if !(defined(_MSC_VER) || defined(__clang__))
#if (__cpp_lib_chrono < 201907L)
# include <date/date.h>
#endif
@ -71,7 +71,7 @@ WarningsProvider::ListFiles(std::chrono::system_clock::time_point newerThan)
{
using namespace std::chrono;
#if !(defined(_MSC_VER) || defined(__clang__))
#if (__cpp_lib_chrono < 201907L)
using namespace date;
#endif