[rrd-developers] Building rrdtool v1.3.8 on win32

Tobias Oetiker tobi at oetiker.ch
Sun Jul 5 09:48:09 CEST 2009


Today Barrie0482 wrote:

I found this

#ifdef WIN32
/* Gross Hack Alert */
#if _MSC_VER < 1300
#define strtoll(p, e, b) ((*(e) = (char*)(p) + (((b) == 10) ? strspn((p), "0123456789") : 0)), _atoi64(p))
#else
#define strtoll(p, e, b) _strtoi64(p, e, b)
#endif

cheers
tobi

> Hi Tobi,
>
> I am using Microsoft's Visual C++ 2008 Express edition. I doesn't seem to
> support strtoll.
>
> 1>..\src\rrd_restore.c(136) : error C3861: 'strtoll': identifier not found
>
> I'm looking to see if I can find a workaround.
>
> Cheers, Barrie
>
>
>
>
> oetiker wrote:
> >
> >
> > would the following patch work for you too:
> >
> > Index: rrd_restore.c
> > ===================================================================
> > --- rrd_restore.c       (revision 1801)
> > +++ rrd_restore.c       (working copy)
> >
> >
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list