apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: Win32: APR_INT64_STRFN is wrong
Date Mon, 24 May 2004 20:02:21 GMT
* "William A. Rowe, Jr." <wrowe@rowe-clan.net> wrote:

> At 03:50 PM 5/23/2004, André Malo wrote:
> >Hi,
> >
> >/* MSVC 7.0 introduced _strtoui64 */
> >#if _MSC_VER >= 1300 && _INTEGRAL_MAX_BITS >= 64
> >#define APR_HAVE_INT64_STRFN  1
> >#define APR_INT64_STRFN       _strtoui64
> >...
> >
> >This should be _strtoi64, because apr_int64_t is signed.
> 
> IIRC, in that compiler only _strtoui64 exists.  Wrap your proposal 
> in a test for the greater _MSC_VER that introduces _strtoi64 (?)

Hmm. According to

http://msdn.microsoft.com/library/en-us/vclib/html/_crt_strtod.2c_.strtol.2c_.strtoul_functions.asp

These function should coexist since MSVC 7, i.e. _MSC_VER >= 1300
(But I don't have VS .NET, so I cannot check it myself).

nd
-- 
"Umfassendes Werk (auch fuer Umsteiger vom Apache 1.3)"
                                          -- aus einer Rezension

<http://pub.perlig.de/books.html#apache2>

Mime
View raw message