From 5354dee2f7ee99792a38a3a13f85da90c654f7ee Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Mon, 5 Aug 2019 13:52:18 +0300 Subject: MSVC: Use as an alternative for Only the input/output functions from options are used, so using when building with MSVC should be enough. The inclusion of the header in context-priv.c does not seem to be needed (tested on GNU/Linux) and so it is removed. Signed-off-by: Ran Benita --- test/common.c | 4 ++++ test/context.c | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/common.c b/test/common.c index 3784d8b..446ce58 100644 --- a/test/common.c +++ b/test/common.c @@ -34,7 +34,11 @@ #include #include +#ifdef _MSC_VER +#include +#else #include +#endif #include #include #include diff --git a/test/context.c b/test/context.c index 13d47a1..2f5fd37 100644 --- a/test/context.c +++ b/test/context.c @@ -30,7 +30,15 @@ #include #include -#include +#ifdef _MSC_VER +# include +# include +# ifndef S_ISDIR +# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +# endif +#else +# include +#endif /* keeps a cache of all makedir/maketmpdir directories so we can free and * rmdir them in one go, see unmakedirs() */ -- cgit v1.2.1