diff options
Diffstat (limited to 'src/w32-util.c')
| -rw-r--r-- | src/w32-util.c | 17 | 
1 files changed, 10 insertions, 7 deletions
diff --git a/src/w32-util.c b/src/w32-util.c index c29ff490..b33aa2c6 100644 --- a/src/w32-util.c +++ b/src/w32-util.c @@ -32,8 +32,12 @@  #ifdef HAVE_SYS_TIME_H  # include <sys/time.h>  #endif -#include <sys/types.h> -#include <sys/stat.h> +#ifdef HAVE_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef HAVE_SYS_STAT_H +# include <sys/stat.h> +#endif  #ifdef HAVE_UNISTD_H  # include <unistd.h>  #endif @@ -72,14 +76,14 @@ DEFINE_STATIC_LOCK (get_path_lock);  #define RTLD_LAZY 0 -static __inline__ void * +static GPG_ERR_INLINE void *  dlopen (const char * name, int flag)  {    void * hd = LoadLibrary (name);    return hd;  } -static __inline__ void * +static GPG_ERR_INLINE void *  dlsym (void * hd, const char * sym)  {    if (hd && sym) @@ -92,7 +96,7 @@ dlsym (void * hd, const char * sym)    return NULL;  } -static __inline__ int +static GPG_ERR_INLINE int  dlclose (void * hd)  {    if (hd) @@ -104,7 +108,6 @@ dlclose (void * hd)  }    #endif /* HAVE_ALLOW_SET_FOREGROUND_WINDOW */ -  void   _gpgme_allow_set_foreground_window (pid_t pid)  { @@ -631,6 +634,6 @@ _gpgme_w32ce_get_debug_envvar (void)        free (tmp);        tmp = NULL;      } -  return NULL; +  return tmp;  }  #endif /*HAVE_W32CE_SYSTEM*/  | 
