Re: [HACKERS] strtoll/strtoull emulation

2014-06-03 Thread Andres Freund
On 2014-06-03 11:28:22 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2014-06-03 10:55:17 -0400, Tom Lane wrote: > >> Ugh. Surely Windows has got *some* equivalent, perhaps named differently? > > > Apparently they've added strtoull()/stroll() to msvc 2013... And there's > > _strtoui64() w

Re: [HACKERS] strtoll/strtoull emulation

2014-06-03 Thread Tom Lane
Andres Freund writes: > On 2014-06-03 10:55:17 -0400, Tom Lane wrote: >> Ugh. Surely Windows has got *some* equivalent, perhaps named differently? > Apparently they've added strtoull()/stroll() to msvc 2013... And there's > _strtoui64() which seems to have already existed a while back. > But it

Re: [HACKERS] strtoll/strtoull emulation

2014-06-03 Thread Andres Freund
On 2014-06-03 10:55:17 -0400, Tom Lane wrote: > Andres Freund writes: > > I recently had the need to use strtoull() in postgres code. Only to > > discover that that's not available on some platforms. IIRC windows/msvc > > was one of them. Now 9d7ded0f4277f5c0063eca8e871a34e2355a8371 added > > anot

Re: [HACKERS] strtoll/strtoull emulation

2014-06-03 Thread Tom Lane
Andres Freund writes: > I recently had the need to use strtoull() in postgres code. Only to > discover that that's not available on some platforms. IIRC windows/msvc > was one of them. Now 9d7ded0f4277f5c0063eca8e871a34e2355a8371 added > another user - guarded by HAVE_STRTOULL. That commit will ma

[HACKERS] strtoll/strtoull emulation

2014-06-03 Thread Andres Freund
Hi, I recently had the need to use strtoull() in postgres code. Only to discover that that's not available on some platforms. IIRC windows/msvc was one of them. Now 9d7ded0f4277f5c0063eca8e871a34e2355a8371 added another user - guarded by HAVE_STRTOULL. That commit will make things worse on windows