The first version to support the function is 
http://library.gnome.org/devel/glib/2.12/glib-String-Utility-Functions.html

However, it was buggy unless 2.12.5 and up
http://www.mail-archive.com/[email protected]/msg195198.ht
ml

Plain strtoll works just fine, thus a simple patch would be

#ifdef GLIB_CHECK_VERSION(2,12,5)
        while ((n = (int)g_ascii_strtoll(sz, &sz, 10)) != 0) {
#else
        while ((n = (int)strtoll(sz, &sz, 10)) != 0) {
#endif

Ingo

> -----Original Message-----
> From: Michael Petch [mailto:[email protected]] 
> Sent: Friday, August 14, 2009 6:17 AM
> To: Ingo Macherius; [email protected]
> Subject: Re: [Bug-gnubg] Missing glib function in cygwin 
> 
> 
> 
> 
> On 13/08/09 10:04 PM, "Ingo Macherius" <[email protected]> wrote:
> 
> >         while ((n = (int)g_ascii_strtoll(sz, &sz, 10)) != 0) {
> 
> Howdy,
> 
> You are correct. Cygwin truly Is out of date. To support this 
> we likely should check to see if this function is supported, 
> and if necessary fall back to something that does work.
> 
> On that note, if you wish to try and get a cygwin release 
> done you may wish to replace g_ascii_strtoll with strtoll .
> 
> I'm not sure if strtoll is on cygwin (It probably is) so the 
> lien would be:
> 
> while ((n = (int)strtoll(sz, &sz, 10)) != 0) {
> 
> 



_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg

Reply via email to