From: Junio C Hamano Date: Wed, 27 Aug 2008 23:14:22 +0000 (-0700) Subject: ctype.c: protect tiny C preprocessor constants X-Git-Tag: v1.6.0.2~50 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c67b1fa349cc7b4341b32b9ef1c58a3821ce0830;p=git.git ctype.c: protect tiny C preprocessor constants Some platforms contaminate the preprocessor token namespace with their own definition of SS without being asked. Avoid getting hit by redefinition warning messages by explicitly undef SS, AA and DD shorthand we use in this table definition. Signed-off-by: Junio C Hamano --- diff --git a/ctype.c b/ctype.c index ee06eb7f4..d2bd38e90 100644 --- a/ctype.c +++ b/ctype.c @@ -5,6 +5,11 @@ */ #include "cache.h" +/* Just so that no insane platform contaminate namespace with these symbols */ +#undef SS +#undef AA +#undef DD + #define SS GIT_SPACE #define AA GIT_ALPHA #define DD GIT_DIGIT