mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 02:20:04 +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
				
			
		|  | @ -13,7 +13,7 @@ | |||
| 
 | ||||
| #include <sstream> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  | @ -107,7 +107,7 @@ bool CodedTimeMotionLocation::Parse(const StringRange& lines, | |||
|       { | ||||
|          using namespace std::chrono; | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
|          using namespace date; | ||||
| #endif | ||||
| 
 | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ | |||
| #include <boost/bimap.hpp> | ||||
| #include <boost/bimap/unordered_set_of.hpp> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  | @ -143,7 +143,7 @@ bool PVtec::Parse(const std::string& s) | |||
| { | ||||
|    using namespace std::chrono; | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
|    using namespace date; | ||||
| #endif | ||||
| 
 | ||||
|  |  | |||
|  | @ -20,7 +20,7 @@ | |||
| 
 | ||||
| #include <boost/algorithm/string.hpp> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  | @ -284,7 +284,7 @@ void Placefile::Impl::ProcessLine(const std::string& line) | |||
|       { | ||||
|          using namespace std::chrono; | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
|          using namespace date; | ||||
| #endif | ||||
| 
 | ||||
|  |  | |||
|  | @ -11,7 +11,7 @@ | |||
| #include <cpr/cpr.h> | ||||
| #include <libxml/HTMLparser.h> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  | @ -200,7 +200,7 @@ void DirListSAXHandler::Characters(void* userData, const xmlChar* ch, int len) | |||
|    { | ||||
|       using namespace std::chrono; | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
|       using namespace date; | ||||
| #endif | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ | |||
| 
 | ||||
| #include <boost/algorithm/string.hpp> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  | @ -59,7 +59,7 @@ std::string TimeString(std::chrono::system_clock::time_point time, | |||
| { | ||||
|    using namespace std::chrono; | ||||
| 
 | ||||
| #if (defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono >= 201907L) | ||||
| #   define FORMAT_STRING_24_HOUR "{:%Y-%m-%d %H:%M:%S %Z}" | ||||
| #   define FORMAT_STRING_12_HOUR "{:%Y-%m-%d %I:%M:%S %p %Z}" | ||||
|    namespace date = std::chrono; | ||||
|  | @ -128,7 +128,7 @@ TryParseDateTime(const std::string& dateTimeFormat, const std::string& str) | |||
| { | ||||
|    using namespace std::chrono; | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
|    using namespace date; | ||||
| #endif | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak