mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Added #define needed for gettimeofday() to be declared on some versions of Cygwin
This commit is contained in:
		| @@ -15,8 +15,17 @@ | ||||
| #endif | ||||
|  | ||||
| #ifdef CATCH_PLATFORM_WINDOWS | ||||
| #include "catch_windows_h_proxy.h" | ||||
|  | ||||
| #  include "catch_windows_h_proxy.h" | ||||
|  | ||||
| #else | ||||
|  | ||||
| // Required for some versions of Cygwin to declare gettimeofday | ||||
| // see: http://stackoverflow.com/questions/36901803/gettimeofday-not-declared-in-this-scope-cygwin | ||||
| #   ifdef __CYGWIN__ | ||||
| #       define _BSD_SOURCE | ||||
| #   endif | ||||
|  | ||||
| #include <sys/time.h> | ||||
| #endif | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Phil Nash
					Phil Nash