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 <johannes.schindelin@gmx.de> Acked-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Eric Sunshine committed
Sep 27, 2010 at 07:01 UTC
77df1f1edfab61bf605f707aeb3b5f5bd54ffb76
1 file changed
+6
compat/mingw.h
+6
@@ -78,6 +78,12 @@ struct itimerval {
78
};
79
#define ITIMER_REAL 0
80
81
+/*
82
+ * sanitize preprocessor namespace polluted by Windows headers defining
83
+ * macros which collide with git local versions
84
+ */
85
+#undef HELP_COMMAND /* from winuser.h */
86
+
87
/*
88
* trivial stubs
89
*/