talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit fa1278d30b9ab7ccf3cbefbf44d28908f8a2cd6b
parent da0de8926e01c944636382d85314af9a4a2a070c
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Wed, 14 Nov 2018 21:21:51 +0100

Fix WEXITSTATUS build error on Win32.

Also add glib.h include in file-utils.c, so that
G_OS_WIN32 ifdefs actually work.

Diffstat:
Msrc/common/file-utils.c | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/common/file-utils.c b/src/common/file-utils.c @@ -21,7 +21,14 @@ #include "claws-features.h" #endif +#include <glib.h> + +#ifndef G_OS_WIN32 #include <sys/wait.h> +#else +#define WEXITSTATUS(x) (x) +#endif + #include <errno.h> #include <stdio.h> #include <unistd.h> @@ -98,10 +105,6 @@ int claws_fclose(FILE *fp) } #endif -#ifdef G_OS_WIN32 -#define WEXITSTATUS(x) (x) -#endif - int claws_unlink(const char *filename) { GStatBuf s;