From 53ca72af4923928c8ab2fa18841fe7449cae0f3b Mon Sep 17 00:00:00 2001 From: hobbs Date: Sat, 16 Feb 2002 01:17:36 +0000 Subject: * unix/tclUnixPort.h: add strtoll/strtoull declarations for platforms that do not define them. --- ChangeLog | 3 +++ unix/tclUnixPort.h | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4a0bb62..16a8fc8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2002-02-15 Jeff Hobbs + * unix/tclUnixPort.h: add strtoll/strtoull declarations for + platforms that do not define them. + * generic/tclIndexObj.c (STRING_AT): removed ptrdiff_t cast and use of VOID* in default case (GNU-ism). diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 5b3b160..0b994f2 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -19,7 +19,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPort.h,v 1.21 2002/02/15 14:28:50 dkf Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.22 2002/02/16 01:17:36 hobbs Exp $ */ #ifndef _TCLUNIXPORT @@ -85,6 +85,13 @@ typedef off_t Tcl_SeekOffset; # define Tcl_PlatformLStat lstat #endif +#if !HAVE_STRTOLL && defined(TCL_WIDE_INT_TYPE) +EXTERN Tcl_WideInt strtoll _ANSI_ARGS_((char *string, char **endPtr, + int base)); +EXTERN Tcl_WideUInt strtoull _ANSI_ARGS_((char *string, char **endPtr, + int base)); +#endif + #include #ifdef HAVE_SYS_SELECT_H # include -- cgit v0.12