Re: gettimeofday in c++

2009-08-09 Thread Bruno Haible
Jim Meyering wrote: > While I don't like adding casts, in this case, > (accommodating C++) there is no alternative. Agreed. Applied and pushed. Bruno

Re: gettimeofday in c++

2009-08-08 Thread Jim Meyering
Bruno Haible wrote: ... > Here's a proposed fix. Jim, is that OK to apply (I guess Paul does not > have time to read this any more)? > > > 2009-08-08 Bruno Haible > > Avoid compilation error in C++ mode. > * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument. ... > > - in

Re: gettimeofday in c++

2009-08-08 Thread Bruno Haible
Sam Steingold wrote: > modules which cannot be compiled with c++ (regex, gettimeofday) should depend > on no-c++ For regex, this is due to a controversy between the glibc maintainers and our position. For gettimeofday, however, it can be fixed with a one-line change. Before: $ ./gnulib-tool --