diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-08-27 16:14:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-27 16:14:22 -0700 |
commit | c67b1fa349cc7b4341b32b9ef1c58a3821ce0830 (patch) | |
tree | 5f7f341bbc7f97d63cbd04dc4686ca34789241e5 | |
parent | 0c68d386da710940a22712b8f3539f7e73ba1b8f (diff) | |
download | git-c67b1fa349cc7b4341b32b9ef1c58a3821ce0830.tar.gz |
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 <gitster@pobox.com>
-rw-r--r-- | ctype.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |