catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Added #define needed for gettimeofday() to be declared on some versions of Cygwin
- Commit
1ca8cefa9afa94f8323a9b7c2e67b16894c32fdd- Author
- Phil Nash ·
- Parents
ca66dd243cf3
Changes
include/internal/catch_timer.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/internal/catch_timer.hpp b/include/internal/catch_timer.hpp index 00adfc3b..881d890e 100644 --- a/include/internal/catch_timer.hpp +++ b/include/internal/catch_timer.hpp @@ -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