Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-08-28 03:14:22 +0400
committerJunio C Hamano <gitster@pobox.com>2008-08-28 03:14:22 +0400
commitc67b1fa349cc7b4341b32b9ef1c58a3821ce0830 (patch)
tree5f7f341bbc7f97d63cbd04dc4686ca34789241e5
parent0c68d386da710940a22712b8f3539f7e73ba1b8f (diff)
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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctype.c b/ctype.c
index ee06eb7f48..d2bd38e901 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