diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-28 15:13:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-06-28 15:13:31 (GMT) |
commit | 2c7d6403e8bf45a9d610dd24471c79ffc0efb10f (patch) | |
tree | 991d5c45b647447f7bc568717d77835ef9fd559d /unix | |
parent | 06f1954e8d128d267854ef360ea341f849ca43cf (diff) | |
download | tcl-2c7d6403e8bf45a9d610dd24471c79ffc0efb10f.zip tcl-2c7d6403e8bf45a9d610dd24471c79ffc0efb10f.tar.gz tcl-2c7d6403e8bf45a9d610dd24471c79ffc0efb10f.tar.bz2 |
MacOSX: add some type-casts, improving C++ compatibility. Make sure that strstr and strtoul() are not configured as invalid: Mac is more strict in exact function signatures. Backported from 8.7
Diffstat (limited to 'unix')
-rwxr-xr-x | unix/configure | 2 | ||||
-rw-r--r-- | unix/configure.in | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/unix/configure b/unix/configure index 73a8eac..7d40237 100755 --- a/unix/configure +++ b/unix/configure @@ -14926,7 +14926,6 @@ cat >>conftest.$ac_ext <<_ACEOF #include <stdlib.h> #include <string.h> int main() { - extern int strstr(); exit(strstr("\0test", "test") ? 1 : 0); } _ACEOF @@ -15096,7 +15095,6 @@ cat >>conftest.$ac_ext <<_ACEOF #include <stdlib.h> #include <string.h> int main() { - extern int strtoul(); char *term, *string = "0"; exit(strtoul(string,&term,0) != 0 || term != string+1); } diff --git a/unix/configure.in b/unix/configure.in index 9dd9b7f..2a66cb1 100644 --- a/unix/configure.in +++ b/unix/configure.in @@ -342,7 +342,6 @@ AC_CHECK_FUNC(memmove, , [ #-------------------------------------------------------------------- SC_TCL_CHECK_BROKEN_FUNC(strstr, [ - extern int strstr(); exit(strstr("\0test", "test") ? 1 : 0); ]) @@ -353,7 +352,6 @@ SC_TCL_CHECK_BROKEN_FUNC(strstr, [ #-------------------------------------------------------------------- SC_TCL_CHECK_BROKEN_FUNC(strtoul, [ - extern int strtoul(); char *term, *string = "0"; exit(strtoul(string,&term,0) != 0 || term != string+1); ]) |