summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2018-03-19 20:54:23 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2018-03-30 12:25:57 +0800
commit08649ce12fb7ea41928a17f05fa1916cbe44361c (patch)
tree0122eaf7439ddf74bdd15ddca7ac05905574ae18
parent18fb749d658e86edad8145a3032c4b6e3be48d72 (diff)
downloadpango-08649ce12fb7ea41928a17f05fa1916cbe44361c.tar.gz
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.
-rw-r--r--tests/markup-parse.c8
1 files changed, 7 insertions, 1 deletions
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 <glib.h>
#include <string.h>
-#include <unistd.h>
+
+#ifdef G_OS_WIN32
+# include <io.h>
+#else
+# include <unistd.h>
+#endif
+
#include <locale.h>
#include <pango/pangocairo.h>