From 08649ce12fb7ea41928a17f05fa1916cbe44361c Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 19 Mar 2018 20:54:23 +0800 Subject: tests/markup-parse.c: Fix build on Visual Studio Visual Studio does not ship with a unistd.h, so include the proper header on Windows when unistd.h is not found on Windows. --- tests/markup-parse.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/markup-parse.c b/tests/markup-parse.c index e82c6db5..633f3e89 100644 --- a/tests/markup-parse.c +++ b/tests/markup-parse.c @@ -21,7 +21,13 @@ #include #include -#include + +#ifdef G_OS_WIN32 +# include +#else +# include +#endif + #include #include -- cgit v1.2.1