[gtk/wip.win32.fixes: 37/37] clipboard-client.c: Include necessary headers for Windows
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip.win32.fixes: 37/37] clipboard-client.c: Include necessary headers for Windows
- Date: Mon, 3 May 2021 08:35:29 +0000 (UTC)
commit 52743931f71d0dc5644f475b6bb3aa6be281899b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon May 3 16:33:14 2021 +0800
clipboard-client.c: Include necessary headers for Windows
We need to include io.h and process.h for close() and exit(), as unistd.h may
not be universally available.
testsuite/gdk/clipboard-client.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/testsuite/gdk/clipboard-client.c b/testsuite/gdk/clipboard-client.c
index d9f8ff2f9d..b27da92205 100644
--- a/testsuite/gdk/clipboard-client.c
+++ b/testsuite/gdk/clipboard-client.c
@@ -4,6 +4,10 @@
#include "wayland/gdkwayland.h"
#endif
+#ifdef G_OS_WIN32
+#include <io.h>
+#include <process.h>
+#endif
G_GNUC_NORETURN static void
got_string_cb (GObject *source,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]