Cygwin compatibility fixes

This commit is contained in:
Martin Hořeňovský
2017-02-15 17:57:22 +01:00
parent 2e0ae01b05
commit c6178601c5
3 changed files with 32 additions and 1 deletions

View File

@@ -103,6 +103,17 @@ namespace Catch {
#else // Not Windows - assumed to be POSIX compatible //////////////////////////
# if !defined(CATCH_CONFIG_POSIX_SIGNALS)
namespace Catch {
struct FatalConditionHandler {
void reset() {}
};
}
# else // CATCH_CONFIG_POSIX_SIGNALS is defined
#include <signal.h>
namespace Catch {
@@ -183,6 +194,8 @@ namespace Catch {
} // namespace Catch
# endif // CATCH_CONFIG_POSIX_SIGNALS
#endif // not Windows
#endif // TWOBLUECUBES_CATCH_FATAL_CONDITION_H_INCLUDED