mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-03 21:49:32 +01:00 
			
		
		
		
	Fixed compilation under MinGW - use gmtime_s() instead of gmtime_r().
This commit is contained in:
		
				
					committed by
					
						
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			
						parent
						
							4b5812e932
						
					
				
				
					commit
					2c269eb633
				
			@@ -26,7 +26,7 @@ namespace Catch {
 | 
			
		||||
            std::time(&rawtime);
 | 
			
		||||
 | 
			
		||||
            std::tm timeInfo = {};
 | 
			
		||||
#ifdef _MSC_VER
 | 
			
		||||
#if defined (_MSC_VER) || defined (__MINGW32__)
 | 
			
		||||
            gmtime_s(&timeInfo, &rawtime);
 | 
			
		||||
#else
 | 
			
		||||
            gmtime_r(&rawtime, &timeInfo);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user