DBI windows compile problems: gmtime_r

Phil Longstaff plongstaff at rogers.com
Mon Jul 14 10:54:51 EDT 2008


OK.  However, gmtime() is used in many other places in gnucash, so I am
not introducing a problem.

Why don't you log a bug so we won't forget it :)

Phil

Derek Atkins wrote:
> Hi,
> 
> One problem with using gmtime() is that it is not multi-threaded
> so a second call to gmtime() will scribble over the space used
> in the first call.
> 
> I think a better approach would be to add gmtime_r to AC_REPLACE_FUNCS
> in configure and then we can add an implementation in libs/libc
> on win32.  I suspect this would be a better long-term solution
> than just using gmtime().
> 
> -derek
> 
> Quoting Phil Longstaff <plongstaff at rogers.com>:
> 
>> Hi Nathan,
>>
>> sorry for taking so long.  I just committed this change.
>>
>> Phil
>>
>> Nathan Buchanan wrote:
>>> Hi Phil!
>>>
>>> I get a warning about gmtime_r being undefined in
>>> src/backend/sql/gnc-backend-sql.c:1550  From what I read, the gmtime_r
>>> function is not available in mingw. How about we use gmtime?
>>>
>>> Nathan
>>>
>>> -- 
>>> <><><><><><><><><><><><><><><>
>>> "Even if you are on the right track, you'll get run over if you just sit
>>> there" - Will Rogers
>>
>>
>> _______________________________________________
>> gnucash-devel mailing list
>> gnucash-devel at gnucash.org
>> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>>
> 
> 
> 




More information about the gnucash-devel mailing list