strtoll/strtoull emulation

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: strtoll/strtoull emulation
Date: 2014-06-03 14:46:54
Message-ID: 20140603144654.GM24145@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 btw...
How about adding emulation for strtoll/strtoull to port/? The BSDs have
easily crib-able functions available...

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2014-06-03 14:48:24 Re: [HACKERS] BUG #9652: inet types don't support min/max
Previous Message Tom Lane 2014-06-03 14:40:55 Re: pg_basebackup failed to back up large file