Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | From f7fa48c4c75a1e748dc5071e709c0b62ff739eaa Mon Sep 17 00:00:00 2001 |
| 2 | From: "jan.nijtmans" <nijtmans@users.sourceforge.net> |
| 3 | Date: Mon, 9 Dec 2019 10:02:20 +0000 |
| 4 | Subject: [PATCH] Fix [abd4abedd2]: Failed to build tk 8.6.10 with cross |
| 5 | compile |
| 6 | |
| 7 | Upstream-Status: Backport |
| 8 | [https://github.com/tcltk/tcl/commit/f7fa48c4c75a1e748dc5071e709c0b62ff739eaa] |
| 9 | |
| 10 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> |
| 11 | --- |
| 12 | compat/strtol.c | 2 +- |
| 13 | compat/strtoul.c | 2 +- |
| 14 | 2 files changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/compat/strtol.c b/compat/strtol.c |
| 17 | index b7f69196c..811006a64 100644 |
| 18 | --- a/compat/strtol.c |
| 19 | +++ b/compat/strtol.c |
| 20 | @@ -53,7 +53,7 @@ strtol( |
| 21 | */ |
| 22 | |
| 23 | p = string; |
| 24 | - while (TclIsSpaceProc(*p)) { |
| 25 | + while (isspace(UCHAR(*p))) { |
| 26 | p += 1; |
| 27 | } |
| 28 | |
| 29 | diff --git a/compat/strtoul.c b/compat/strtoul.c |
| 30 | index e37eb05f8..15587f1da 100644 |
| 31 | --- a/compat/strtoul.c |
| 32 | +++ b/compat/strtoul.c |
| 33 | @@ -74,7 +74,7 @@ strtoul( |
| 34 | */ |
| 35 | |
| 36 | p = string; |
| 37 | - while (TclIsSpaceProc(*p)) { |
| 38 | + while (isspace(UCHAR(*p))) { |
| 39 | p += 1; |
| 40 | } |
| 41 | if (*p == '-') { |
| 42 | -- |
| 43 | 2.17.1 |
| 44 | |