[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gettimeofday in c++
From: |
Jim Meyering |
Subject: |
Re: gettimeofday in c++ |
Date: |
Sun, 09 Aug 2009 01:42:18 +0200 |
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 <address@hidden>
>
> Avoid compilation error in C++ mode.
> * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
...
>
> - int result = gettimeofday (tv, tz);
> + int result = gettimeofday (tv, (struct timezone *) tz);
While I don't like adding casts, in this case,
(accommodating C++) there is no alternative.
So your change is fine. Thanks!
- Re: no-c++, (continued)
- Re: no-c++, Bruno Haible, 2009/08/08
- Re: no-c++, Sam Steingold, 2009/08/09
- Re: no-c++, Bruno Haible, 2009/08/09
- Re: no-c++, Simon Josefsson, 2009/08/10
- Re: no-c++, Sam Steingold, 2009/08/10
- Re: no-c++, Simon Josefsson, 2009/08/10
- Re: no-c++, Sam Steingold, 2009/08/10
- Re: no-c++, Paolo Bonzini, 2009/08/10
- Re: no-c++, Simon Josefsson, 2009/08/10
Re: gettimeofday in c++, Bruno Haible, 2009/08/08
- Re: gettimeofday in c++,
Jim Meyering <=