diff options
author | Werner Koch <[email protected]> | 2010-11-02 16:27:46 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2010-11-02 16:27:46 +0000 |
commit | 987993a38d12f6de052683711e673fa6bbbdae86 (patch) | |
tree | fd71f8e2a821a54a0f4c0b2243f5ad4c74683c97 /src/w32-util.c | |
parent | 2010-10-28 Marcus Brinkmann <[email protected]> (diff) | |
download | gpgme-987993a38d12f6de052683711e673fa6bbbdae86.tar.gz gpgme-987993a38d12f6de052683711e673fa6bbbdae86.zip |
First take on changes to allow building with MSC for W32CE.
Fixed regression in plain W32 build.
Diffstat (limited to 'src/w32-util.c')
-rw-r--r-- | src/w32-util.c | 18 |
1 files changed, 13 insertions, 5 deletions
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 <assert.h> #include <errno.h> #include <stdint.h> -#include <sys/time.h> +#ifdef HAVE_SYS_TIME_H +# include <sys/time.h> +#endif #include <sys/types.h> #include <sys/stat.h> -#include <unistd.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif #include <fcntl.h> -#include <windows.h> -#include <shlobj.h> #include <io.h> -#include "ath.h" +#define _WIN32_IE 0x0400 /* Required for SHGetSpecialFolderPathA. */ + #include "util.h" +#include <shlobj.h> +#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); |