aboutsummaryrefslogtreecommitdiff
path: root/ctype.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-08-27 16:14:22 -0700
committerJunio C Hamano <gitster@pobox.com>2008-08-27 16:14:22 -0700
commitc67b1fa349cc7b4341b32b9ef1c58a3821ce0830 (patch)
tree5f7f341bbc7f97d63cbd04dc4686ca34789241e5 /ctype.c
parent0c68d386da710940a22712b8f3539f7e73ba1b8f (diff)
downloadgit-c67b1fa349cc7b4341b32b9ef1c58a3821ce0830.tar.gz
git-c67b1fa349cc7b4341b32b9ef1c58a3821ce0830.tar.xz
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>
Diffstat (limited to 'ctype.c')
-rw-r--r--ctype.c5
1 files changed, 5 insertions, 0 deletions
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