mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
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.
7 lines
158 B
C
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
|