GNOME Bugzilla – Bug 341826
goption.c: 'strtoll' is C99's function
Last modified: 2011-02-18 15:49:38 UTC
Please describe the problem: 'strtoll' is C99's function. So goption.c is not able to be compiled with old C run-time library. Steps to reproduce: 1. compile by old compiler Actual results: Following message is displayed. (Visual C++ 6.0) goption.c(750) : error C4013: 'strtoll' undefined; assuming extern returning int Expected results: If 'strtoll' exists, macro 'HAVE_STRTOLL' should be defined. For example, #ifdef HAVE_STRTOLL tmp = strtoll (arg, &end, 0); #else tmp = strtol (arg, &end, 0); #endif Or, add a new API 'g_ascii_strtoll' to gstrfuncs.c and use it. ('g_ascii_strtoull' already exists since 2.2.) Does this happen every time? Other information:
Yes, we need g_ascii_strtoll for this.