From 158dde050702f83a058962d14156a02234fc9685 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Sat, 19 Oct 2013 13:04:00 -0400 Subject: Replace #ifdef HAVE_UNISTD_H checks with #ifdef G_OS_UNIX In Windows development environments that have it, is mostly just a wrapper around several other native headers (in particular, , which contains read(), close(), etc, and , which contains getpid()). But given that some Windows dev environments don't have , everything that uses those functions on Windows already needed to include the correct Windows header as well, and so there is never any point to including on Windows. Also, remove some includes (and a few others) that were unnecessary even on unix. https://bugzilla.gnome.org/show_bug.cgi?id=710519 --- gio/glocalfileinfo.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'gio/glocalfileinfo.c') diff --git a/gio/glocalfileinfo.c b/gio/glocalfileinfo.c index 5e60bf8ac..4f6d5a2cc 100644 --- a/gio/glocalfileinfo.c +++ b/gio/glocalfileinfo.c @@ -32,9 +32,6 @@ #include #include #include -#ifdef HAVE_UNISTD_H -#include -#endif #include #include #ifdef G_OS_UNIX @@ -62,11 +59,11 @@ #include #include -#ifndef G_OS_WIN32 +#ifdef G_OS_UNIX +#include #include "glib-unix.h" #include "glib-private.h" #endif -#include "glibintl.h" #include "thumbnail-verify.h" @@ -97,6 +94,7 @@ #include "gioerror.h" #include "gthemedicon.h" #include "gcontenttypeprivate.h" +#include "glibintl.h" struct ThumbMD5Context { -- cgit v1.2.1