diff --git a/contrib/lest_expect_abort/Readme.md b/contrib/lest_expect_abort/Readme.md index 787250b..f52b31b 100644 --- a/contrib/lest_expect_abort/Readme.md +++ b/contrib/lest_expect_abort/Readme.md @@ -15,7 +15,7 @@ Please note the following: Dependencies ------------ -*lest_expect_abort* requires headers `io.h` and `fcntl.h` for suppression of messages from `assert`. +*lest_expect_abort* requires header `fcntl.h` and `io.h` (Windows) or `unistd.h` (otherwise) for suppression of messages from `assert`. Assertion macros diff --git a/contrib/lest_expect_abort/lest_expect_abort.hpp b/contrib/lest_expect_abort/lest_expect_abort.hpp index a80fc35..f9cd7dc 100644 --- a/contrib/lest_expect_abort/lest_expect_abort.hpp +++ b/contrib/lest_expect_abort/lest_expect_abort.hpp @@ -9,8 +9,14 @@ #include "lest/lest.hpp" #include +#include +#include +#if _WIN32 #include +#else +#include +#endif #include #if ! defined( lest_NO_SHORT_MACRO_NAMES ) diff --git a/contrib/lest_expect_abort/lest_expect_abort_cpp03.hpp b/contrib/lest_expect_abort/lest_expect_abort_cpp03.hpp index 2da593d..1e58820 100644 --- a/contrib/lest_expect_abort/lest_expect_abort_cpp03.hpp +++ b/contrib/lest_expect_abort/lest_expect_abort_cpp03.hpp @@ -9,8 +9,14 @@ #include "lest/lest_cpp03.hpp" #include +#include +#include +#if _WIN32 #include +#else +#include +#endif #include #if ! defined( lest_NO_SHORT_MACRO_NAMES )