From f25bd0a07f877a3d85986bd7c7be3f464c99a064 Mon Sep 17 00:00:00 2001 From: Heiko Voigt Date: Mon, 10 Oct 2011 20:54:35 +0200 Subject: [PATCH] fix syntax error for macro substituting a function call In commit 68c0c6 the macro substitution to make close_process a noop on non-windows platforms was changed to avoid a compiler warning. This accidentially lead to a compilation error. --- common/systeminfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/systeminfo.h b/common/systeminfo.h index d216d17..d9fbb63 100644 --- a/common/systeminfo.h +++ b/common/systeminfo.h @@ -22,7 +22,7 @@ pid_t fork_process(const char *cmd, const char **args, const char *wd); int wait_for_process(pid_t pid, int max_time, int *errcode); #ifndef _WIN32 -#define close_process (void)(pid) +#define close_process(pid) (void)(pid) #else void close_process(pid_t pid); #endif -- 2.11.4.GIT