Module: wine Branch: master Commit: c35b6b922371cbe1974dcbd3f54292a0527a6850 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c35b6b922371cbe1974dcbd3f5...
Author: Francois Gouget fgouget@free.fr Date: Sun Nov 12 19:45:52 2006 +0100
shell32: Fix inclusion of conditional headers (spotted by winapi_check).
---
dlls/shell32/trash.c | 10 ++++++++-- dlls/shell32/xdg.c | 12 +++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/dlls/shell32/trash.c b/dlls/shell32/trash.c index 4fe43e5..ccd347f 100644 --- a/dlls/shell32/trash.c +++ b/dlls/shell32/trash.c @@ -19,11 +19,17 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */
+#include "config.h" + #include <stdarg.h> -#include <sys/stat.h> +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif #include <sys/types.h> #include <stdlib.h> -#include <unistd.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif #include <dirent.h>
#include "windef.h" diff --git a/dlls/shell32/xdg.c b/dlls/shell32/xdg.c index 188d21c..4c4d10e 100644 --- a/dlls/shell32/xdg.c +++ b/dlls/shell32/xdg.c @@ -17,12 +17,18 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ - + +#include "config.h" + #include <stdarg.h> #include <stdlib.h> #include <string.h> -#include <sys/stat.h> -#include <unistd.h> +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif #include <errno.h>
#include "windef.h"