aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/adadecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/adadecode.c')
-rw-r--r--gcc/ada/adadecode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/adadecode.c b/gcc/ada/adadecode.c
index ef77c5f..fe0253e 100644
--- a/gcc/ada/adadecode.c
+++ b/gcc/ada/adadecode.c
@@ -35,10 +35,11 @@
#include "system.h"
#else
#include <stdio.h>
+#include <ctype.h>
+#define ISDIGIT(c) isdigit(c)
#define PARMS(ARGS) ARGS
#endif
-#include <ctype.h>
#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. */