cURL / Mailing Lists / curl-library / Single Mail


Re: Problem compiling latest CVS in MSVC

From: Gisle Vanem <>
Date: Mon, 23 Feb 2004 14:53:06 +0100

"Daniel Stenberg" <> 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

But why bother?

Received on 2004-02-23