diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-07-07 17:09:31 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-07-07 17:09:31 +0000 |
commit | 0f963b2442d8b307aeca3915882e7f2cacd2ea71 (patch) | |
tree | 4bb543ad4f7fa93e97da06cd3ff3cbc16e2922ba /include/safe-ctype.h | |
parent | 9990da1d5161d7b2712d08f9af4cd754d47c6dd4 (diff) | |
download | fsf-binutils-gdb-0f963b2442d8b307aeca3915882e7f2cacd2ea71.zip fsf-binutils-gdb-0f963b2442d8b307aeca3915882e7f2cacd2ea71.tar.gz fsf-binutils-gdb-0f963b2442d8b307aeca3915882e7f2cacd2ea71.tar.bz2 |
* safe-ctype.h: Add #include of ctype.h before redefining
the ctype.h macros.
Diffstat (limited to 'include/safe-ctype.h')
-rw-r--r-- | include/safe-ctype.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/safe-ctype.h b/include/safe-ctype.h index b3e911e..0266bf1 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 <ctype.h> #undef isalpha #define isalpha(c) do_not_use_isalpha_with_safe_ctype #undef isalnum |