summaryrefslogtreecommitdiff
path: root/tests/testdnd2.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-05 18:26:22 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-02-05 18:26:22 +0000
commitac7dd02f8ff9624f790e6aad03305b74bf456fa9 (patch)
tree2650669a3c2b743c9220ad932554e08a0667fab5 /tests/testdnd2.c
parent9746b728cac39b98636d8c97cb1054bc6c55e75b (diff)
parentf8d3845b1a06036c3c85b4a52d119567432349fe (diff)
downloadgtk+-ac7dd02f8ff9624f790e6aad03305b74bf456fa9.tar.gz
Merge branch 'master.msvc' into 'master'
Fix building recent GTK master on Visual Studio See merge request GNOME/gtk!1369
Diffstat (limited to 'tests/testdnd2.c')
-rw-r--r--tests/testdnd2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/testdnd2.c b/tests/testdnd2.c
index dd375802b3..f011399525 100644
--- a/tests/testdnd2.c
+++ b/tests/testdnd2.c
@@ -1,6 +1,11 @@
-#include <unistd.h>
#include <gtk/gtk.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#elif defined (G_OS_WIN32)
+#include <io.h>
+#endif
+
static GdkTexture *
get_image_texture (GtkImage *image,
int *out_size)