diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-02-05 18:26:22 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-05 18:26:22 +0000 |
commit | ac7dd02f8ff9624f790e6aad03305b74bf456fa9 (patch) | |
tree | 2650669a3c2b743c9220ad932554e08a0667fab5 /tests/testdnd2.c | |
parent | 9746b728cac39b98636d8c97cb1054bc6c55e75b (diff) | |
parent | f8d3845b1a06036c3c85b4a52d119567432349fe (diff) | |
download | gtk+-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.c | 7 |
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) |