tests/testdnd2.c: Don't include unistd.h unconditionally

Instead, on Windows when it is not available, include io.h for close()
This commit is contained in:
Chun-wei Fan 2020-01-30 22:34:53 +08:00
parent e7f2833703
commit f2915180a6

View File

@ -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)