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>
Junio C Hamano committed
Aug 27, 2008 at 16:14 UTC
c67b1fa349cc7b4341b32b9ef1c58a3821ce0830
1 file changed
+5
ctype.c
+5
@@ -5,6 +5,11 @@
5
*/
6
#include "cache.h"
7
8
+/* Just so that no insane platform contaminate namespace with these symbols */
9
+#undef SS
10
+#undef AA
11
+#undef DD
12
+
13
#define SS GIT_SPACE
14
#define AA GIT_ALPHA
15
#define DD GIT_DIGIT