mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Moved definition of _BSD_SOURCE earlier
This commit is contained in:
parent
ff78e7c45a
commit
673ec550f5
@ -81,6 +81,10 @@
|
|||||||
# define CATCH_INTERNAL_CONFIG_NO_POSIX_SIGNALS
|
# define CATCH_INTERNAL_CONFIG_NO_POSIX_SIGNALS
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
// Required for some versions of Cygwin to declare gettimeofday
|
||||||
|
// see: http://stackoverflow.com/questions/36901803/gettimeofday-not-declared-in-this-scope-cygwin
|
||||||
|
# define _BSD_SOURCE
|
||||||
|
|
||||||
#endif // __CYGWIN__
|
#endif // __CYGWIN__
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
@ -20,13 +20,8 @@
|
|||||||
|
|
||||||
#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
|
||||||
|
|
||||||
namespace Catch {
|
namespace Catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user