diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2010-09-27 07:01:59 -0400 |
---|---|---|
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | 2010-10-03 23:34:24 +0100 |
commit | 77df1f1edfab61bf605f707aeb3b5f5bd54ffb76 (patch) | |
tree | fd1c9b069ee19266b588b593c4df6b2aeeaeebfb /compat | |
parent | Fix 'clone' failure at DOS root directory. (diff) | |
download | tgif-77df1f1edfab61bf605f707aeb3b5f5bd54ffb76.tar.xz |
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>
Diffstat (limited to 'compat')
-rw-r--r-- | compat/mingw.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h index 47839663be..a2213b3911 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -79,6 +79,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 */ |