strtoll/strtoull emulation - Mailing list pgsql-hackers

From Andres Freund
Subject strtoll/strtoull emulation
Date
Msg-id 20140603144654.GM24145@awork2.anarazel.de
Whole thread Raw
Responses Re: strtoll/strtoull emulation  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_basebackup failed to back up large file
Next
From: Andres Freund
Date:
Subject: Re: [BUGS] BUG #9652: inet types don't support min/max