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

Top Page
Delete this message
Author: Craig Silverstein
Date:  
To: ph10
CC: zmiller, pcre-dev
Subject: Re: [pcre-dev] PCRE 7.6 and HPUX -- no strtoll function
And here's the patch, just along the lines Zach suggested.

craig

--cut here--

Index: pcrecpp.cc
===================================================================
--- pcrecpp.cc    (revision 319)
+++ pcrecpp.cc    (working copy)
@@ -777,7 +777,7 @@
 #elif defined HAVE__STRTOI64
   long long r = _strtoi64(str, &end, radix);
 #else
-#error parse_longlong_radix: cannot convert input to a long-long
+  return false;    // no way to convert the string to a long long
 #endif
   if (end != str + n) return false;   // Leftover junk
   if (errno) return false;
@@ -807,7 +807,7 @@
 #elif defined HAVE__STRTOI64
   unsigned long long r = _strtoui64(str, &end, radix);
 #else
-#error parse_ulonglong_radix: cannot convert input to a long-long
+  return false;    // no way to convert the string to an unsigned long long
 #endif
   if (end != str + n) return false;   // Leftover junk
   if (errno) return false;