[pango] tests/markup-parse.c: Fix build on Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango] tests/markup-parse.c: Fix build on Visual Studio
- Date: Fri, 30 Mar 2018 04:26:41 +0000 (UTC)
commit 08649ce12fb7ea41928a17f05fa1916cbe44361c
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Mar 19 20:54:23 2018 +0800
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 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/tests/markup-parse.c b/tests/markup-parse.c
index e82c6db..633f3e8 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]