[gedit/master-msvc: 4/10] gedit-app.c: Don't include unistd.h unconditionally
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/master-msvc: 4/10] gedit-app.c: Don't include unistd.h unconditionally
- Date: Fri, 29 Apr 2022 10:23:26 +0000 (UTC)
commit f7da8513e49873bd587422abb8e09712ac9f6e31
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Aug 23 18:51:54 2021 +0800
gedit-app.c: Don't include unistd.h unconditionally
It is not shipped with all Windows compilers.
gedit/gedit-app.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 27d71a87a..566c46e19 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -24,7 +24,11 @@
#include "gedit-app-private.h"
#include <string.h>
+
+#ifndef G_OS_WIN32
#include <unistd.h>
+#endif
+
#include <stdlib.h>
#include <glib/gi18n.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]