curl-library
Re: Problem compiling latest CVS in MSVC
From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Mon, 23 Feb 2004 14:53:06 +0100
Date: Mon, 23 Feb 2004 14:53:06 +0100
"Daniel Stenberg" <daniel-curl_at_haxx.se> said:
> > Basically adding an #ifdef for _MSC_VER to strtoofft.h to make it go to
> > _strtoi64 solved this problem.
>
> So _strtoi64() takes the same arguments as strtoll()?
Think so yes, but we better use "__int64 _atoi64 (const char *)" from <stdlib.h>
since _strtoi64() is only in MSVC v7.x AFAICS.
If we should use _strtoi64(), strtoofft.h should have something like:
#ifdef (_MSC_VER) && (_MSC_VER >= 1300)
#define strtoll _strtoi64
#endif
But why bother?
--gv
Received on 2004-02-23