unittest-cpp/UnitTest++/TimeHelpers.h
paul.bristow d288acf175 Add support for Cygwin
Add UNITTEST_CYGWIN directive and use it to:
include Posix/TimeHelpers.h for Cygwin,
exclude the signal handling in SignalTranslator.h/.cpp as Cygwin does not have
the necessary Posix signal handling support, i.e. sigjmp_buf or siglongjmp.

Reimplement SleepMs in TimeHelpers.cpp using C++11 rather than usleep as that
is not present on Cygwin.

Update CMakeLists.txt to exclude SignalTranslator.h/.cpp from the build.
2017-12-27 07:56:41 +00:00

7 lines
158 B
C

#include "Config.h"
#if defined(UNITTEST_POSIX) || defined(UNITTEST_CYGWIN)
#include "Posix/TimeHelpers.h"
#else
#include "Win32/TimeHelpers.h"
#endif