Re: [pcre-dev] PCRE 7.6 and HPUX -- no strtoll function

Page principale
Supprimer ce message
Auteur: Zachary Miller
Date:  
À: Craig Silverstein
CC: pcre-dev
Sujet: Re: [pcre-dev] PCRE 7.6 and HPUX -- no strtoll function
On Fri, Feb 01, 2008 at 01:56:31PM -0800, Craig Silverstein wrote:
> And here's the patch, just along the lines Zach suggested.


i made pretty much the same patch locally, and it had two problems:

1) it still won't compile unless you declare 'r', even though it
never gets used. so ultimately i ended up with:

-#error parse_longlong_radix: cannot convert input to a long-long
+  return false;    // no way to convert the string to a long long
+  int r = 0;       // make the compiler happy



2) the unit test will fail, since HAVE_LONG_LONG is still true, and
the function will always return false.


perhaps a better solution is to hack the configure framework to force
HAVE_LONG_LONG and HAVE_UNSIGNED_LONG_LONG to false (or undefined) if
neither of the strtoq or strtoll functions exist. i'm not much of an
autoconf wizard so i'm not sure if that's feasible.


anyways, i've worked around the issue for my needs. just wanted to
make you all aware. isn't supporting all the different unix flavors
fun?


cheers,
-zach