diff options
author | DJ Delorie <dj@delorie.com> | 2000-12-17 03:07:49 +0000 |
---|---|---|
committer | DJ Delorie <dj@delorie.com> | 2000-12-17 03:07:49 +0000 |
commit | 7f984a311315325adcea6a38fd5dd0f1e4a6fdaa (patch) | |
tree | ae5b6ced5e5289190349956e09243357b6ad1300 /libiberty | |
parent | 68719044e69a7c7605a41a3730f2cff8eeb7424f (diff) | |
download | gdb-7f984a311315325adcea6a38fd5dd0f1e4a6fdaa.tar.gz |
* safe-ctype.c: #include "ansidecl.h".
* strtod.c: Likewise.
* strtoul.c: Include safe-ctype.h, not ctype.h.
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 9 | ||||
-rw-r--r-- | libiberty/safe-ctype.c | 1 | ||||
-rw-r--r-- | libiberty/strtod.c | 1 | ||||
-rw-r--r-- | libiberty/strtoul.c | 2 |
4 files changed, 12 insertions, 1 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index b9b8b09f3b1..0d2333fbe40 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,12 @@ +2000-12-16 Michael Sokolov <msokolov@ivan.Harhan.ORG> + + * safe-ctype.c: #include "ansidecl.h". + * strtod.c: Likewise. + +2000-12-16 Michael Sokolov <msokolov@ivan.Harhan.ORG> + + * strtoul.c: Include safe-ctype.h, not ctype.h. + 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu> * safe-ctype.c: New file. diff --git a/libiberty/safe-ctype.c b/libiberty/safe-ctype.c index b6722a26684..0c2be3ed795 100644 --- a/libiberty/safe-ctype.c +++ b/libiberty/safe-ctype.c @@ -29,6 +29,7 @@ Boston, MA 02111-1307, USA. */ - Behaves properly for all values in the range of a signed or unsigned char. */ +#include "ansidecl.h" #include <safe-ctype.h> #include <stdio.h> /* for EOF */ diff --git a/libiberty/strtod.c b/libiberty/strtod.c index b1243acb6b3..90292c224b6 100644 --- a/libiberty/strtod.c +++ b/libiberty/strtod.c @@ -22,6 +22,7 @@ the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ +#include "ansidecl.h" #include "safe-ctype.h" extern double atof (); diff --git a/libiberty/strtoul.c b/libiberty/strtoul.c index ce969339bc2..66420f268b2 100644 --- a/libiberty/strtoul.c +++ b/libiberty/strtoul.c @@ -37,7 +37,6 @@ #ifdef HAVE_SYS_PARAM_H #include <sys/param.h> #endif -#include <ctype.h> #include <errno.h> #ifdef NEED_DECLARATION_ERRNO extern int errno; @@ -46,6 +45,7 @@ extern int errno; #include <stdlib.h> #endif #include "ansidecl.h" +#include "safe-ctype.h" #ifndef ULONG_MAX #define ULONG_MAX ((unsigned long)(~0L)) /* 0xFFFFFFFF */ |