From c67b1fa349cc7b4341b32b9ef1c58a3821ce0830 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 27 Aug 2008 16:14:22 -0700 Subject: [PATCH] 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 --- ctype.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2