forked from AuroraMiddleware/gtk
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:
parent
e7f2833703
commit
f2915180a6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user