mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-10-31 00:40:06 +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
				
			
		|  | @ -10,7 +10,7 @@ | |||
| 
 | ||||
| #include <boost/json.hpp> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  | @ -271,7 +271,7 @@ size_t RadarSite::ReadConfig(const std::string& path) | |||
| 
 | ||||
|             try | ||||
|             { | ||||
| #if (defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono >= 201907L) | ||||
|                using namespace std::chrono; | ||||
| #else | ||||
|                using namespace date; | ||||
|  |  | |||
|  | @ -52,7 +52,7 @@ | |||
| #include <QTimer> | ||||
| #include <QToolButton> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  |  | |||
|  | @ -413,7 +413,7 @@ const scwx::util::time_zone* RadarProductManager::default_time_zone() const | |||
|    } | ||||
| 
 | ||||
|    case types::DefaultTimeZone::Local: | ||||
| #if (defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono >= 201907L) | ||||
|       return std::chrono::current_zone(); | ||||
| #else | ||||
|       return date::current_zone(); | ||||
|  |  | |||
|  | @ -22,7 +22,7 @@ | |||
| #include <QGuiApplication> | ||||
| #include <QMouseEvent> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  |  | |||
|  | @ -17,7 +17,7 @@ | |||
| #include <boost/timer/timer.hpp> | ||||
| #include <fmt/format.h> | ||||
| 
 | ||||
| #if !(defined(_MSC_VER) || defined(__clang__)) | ||||
| #if (__cpp_lib_chrono < 201907L) | ||||
| #   include <date/date.h> | ||||
| #endif | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 AdenKoperczak
						AdenKoperczak