X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=include%2Fsafe-ctype.h;h=0266bf1aa269c38d93f461c6ba3981c11ab0ee77;hb=cfd3faacbfa0ba6b08d75b41f7f876961f70337b;hp=b3e911e07bd47218f067938e87b61b48cbb35c23;hpb=3725d22e61ec5c3cfce882149a2d842bf1dd5dc7;p=pf3gnuchains%2Fgcc-fork.git diff --git a/include/safe-ctype.h b/include/safe-ctype.h index b3e911e07bd..0266bf1aa26 100644 --- a/include/safe-ctype.h +++ b/include/safe-ctype.h @@ -116,7 +116,10 @@ extern const unsigned char _sch_tolower[256]; from ctype.h. Initially, the approach was to produce an error when detecting that ctype.h has been included. But this was causing trouble as ctype.h might get indirectly included as a result of - including another system header (for instance gnulib's stdint.h). */ + including another system header (for instance gnulib's stdint.h). + So we include ctype.h here and then immediately redefine its macros. */ + +#include #undef isalpha #define isalpha(c) do_not_use_isalpha_with_safe_ctype #undef isalnum