X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fsafe-ctype.h;h=16929877e5993709968f85f995c345a690bd4ea3;hb=6e2118f588c6f33a741a706725f8e23db57251b3;hp=b3e911e07bd47218f067938e87b61b48cbb35c23;hpb=d5721fa7dee8d105e701673eb51c6f16a26ec7a6;p=deliverable%2Fbinutils-gdb.git diff --git a/include/safe-ctype.h b/include/safe-ctype.h index b3e911e07b..16929877e5 100644 --- a/include/safe-ctype.h +++ b/include/safe-ctype.h @@ -1,6 +1,6 @@ /* replacement macros. - Copyright (C) 2000, 2001 Free Software Foundation, Inc. + Copyright (C) 2000-2020 Free Software Foundation, Inc. Contributed by Zack Weinberg . This file is part of the libiberty library. @@ -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