From: Rainer Orth Date: Mon, 24 Nov 2003 16:38:39 +0000 (+0000) Subject: adadecode.c: Only include ctype.h if IN_GCC. X-Git-Tag: releases/gcc-3.4.0~2134 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7677e9e06291274cb77681e899df0246e02f9f20;p=thirdparty%2Fgcc.git adadecode.c: Only include ctype.h if IN_GCC. * adadecode.c: Only include ctype.h if IN_GCC. (__gnat_decode): Use ISDIGIT from safe-ctype.h. From-SVN: r73876 --- diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index e40866c66153..464b690e173b 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2003-11-24 Rainer Orth + + * adadecode.c: Only include ctype.h if IN_GCC. + (__gnat_decode): Use ISDIGIT from safe-ctype.h. + 2003-11-24 Jose Ruiz * Makefile.in: diff --git a/gcc/ada/adadecode.c b/gcc/ada/adadecode.c index ef77c5f9ddfb..fe0253ee09f3 100644 --- a/gcc/ada/adadecode.c +++ b/gcc/ada/adadecode.c @@ -35,10 +35,11 @@ #include "system.h" #else #include +#include +#define ISDIGIT(c) isdigit(c) #define PARMS(ARGS) ARGS #endif -#include #include "adadecode.h" static void add_verbose (const char *, char *); @@ -207,7 +208,7 @@ __gnat_decode (const char *coded_name, char *ada_name, int verbose) int n_digits = 0; if (len > 1) - while (isdigit ((int) ada_name[(int) len - 1 - n_digits])) + while (ISDIGIT ((int) ada_name[(int) len - 1 - n_digits])) n_digits++; /* Check if we have $ or __ before digits. */