Commit | Line | Data |
---|---|---|
8a0e29d8 MO |
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 | Patch taken from upstream to fix cross-compilation. To be removed on next Tcl release. | |
8 | ||
9 | --- | |
10 | compat/strtol.c | 2 +- | |
11 | compat/strtoul.c | 2 +- | |
12 | 2 files changed, 2 insertions(+), 2 deletions(-) | |
13 | ||
14 | diff --git a/compat/strtol.c b/compat/strtol.c | |
15 | index b7f69196ce2..811006a64c3 100644 | |
16 | --- a/compat/strtol.c | |
17 | +++ b/compat/strtol.c | |
18 | @@ -53,7 +53,7 @@ strtol( | |
19 | */ | |
20 | ||
21 | p = string; | |
22 | - while (TclIsSpaceProc(*p)) { | |
23 | + while (isspace(UCHAR(*p))) { | |
24 | p += 1; | |
25 | } | |
26 | ||
27 | diff --git a/compat/strtoul.c b/compat/strtoul.c | |
28 | index e37eb05f823..15587f1da1a 100644 | |
29 | --- a/compat/strtoul.c | |
30 | +++ b/compat/strtoul.c | |
31 | @@ -74,7 +74,7 @@ strtoul( | |
32 | */ | |
33 | ||
34 | p = string; | |
35 | - while (TclIsSpaceProc(*p)) { | |
36 | + while (isspace(UCHAR(*p))) { | |
37 | p += 1; | |
38 | } | |
39 | if (*p == '-') { |