bug-gnulib
[Top][All Lists]
Advanced

[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!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]