Skip to content

Commit

Permalink
ctype.c: protect tiny C preprocessor constants
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gitster committed Aug 27, 2008
1 parent 0c68d38 commit c67b1fa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ctype.c
Expand Up @@ -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
Expand Down

0 comments on commit c67b1fa

Please sign in to comment.