From 92d45630cc11203d2a62be7755a9c7ec92ec0c56 Mon Sep 17 00:00:00 2001 From: Eric Sunshine Date: Mon, 27 Sep 2010 07:01:59 -0400 Subject: [PATCH] Fix Windows-specific macro redefinition warning. shell.c defines macro HELP_COMMAND which collides with a like-named macro from winuser.h. Avoid collision by sanitizing preprocessor namespace after including Windows headers. Acked-by: Johannes Schindelin Signed-off-by: Eric Sunshine Signed-off-by: Pat Thoyts --- compat/mingw.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/compat/mingw.h b/compat/mingw.h index 849f37c02b..be6e80fc05 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -78,6 +78,12 @@ struct itimerval { }; #define ITIMER_REAL 0 +/* + * sanitize preprocessor namespace polluted by Windows headers defining + * macros which collide with git local versions + */ +#undef HELP_COMMAND /* from winuser.h */ + /* * trivial stubs */