From 987993a38d12f6de052683711e673fa6bbbdae86 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 2 Nov 2010 16:27:46 +0000 Subject: First take on changes to allow building with MSC for W32CE. Fixed regression in plain W32 build. --- src/w32-util.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'src/w32-util.c') diff --git a/src/w32-util.c b/src/w32-util.c index e4820c19..cbbc1260 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -29,17 +29,22 @@ #include #include #include -#include +#ifdef HAVE_SYS_TIME_H +# include +#endif #include #include -#include +#ifdef HAVE_UNISTD_H +# include +#endif #include -#include -#include #include -#include "ath.h" +#define _WIN32_IE 0x0400 /* Required for SHGetSpecialFolderPathA. */ + #include "util.h" +#include +#include "ath.h" #include "sema.h" #include "debug.h" @@ -47,6 +52,9 @@ #ifndef HAVE_W32CE_SYSTEM #define HAVE_ALLOW_SET_FOREGROUND_WINDOW 1 #endif +#ifndef F_OK +# define F_OK 0 +#endif DEFINE_STATIC_LOCK (get_path_lock); -- cgit v1.2.3