mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Added #define needed for gettimeofday() to be declared on some versions of Cygwin
This commit is contained in:
parent
ca66dd243c
commit
1ca8cefa9a
@ -15,8 +15,17 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CATCH_PLATFORM_WINDOWS
|
#ifdef CATCH_PLATFORM_WINDOWS
|
||||||
#include "catch_windows_h_proxy.h"
|
|
||||||
|
# include "catch_windows_h_proxy.h"
|
||||||
|
|
||||||
#else
|
#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>
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user