# HG changeset patch # User David Grundberg # Date 1269513487 -3600 # Node ID 9684b3c3b417b695667d87609fe9c8b0745ad4ed # Parent 56e3a4c765a6c09e40be000a30e54b05ceb028d8 Revert modf usage now that cmath is back. diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,8 @@ +2010-03-25 David Grundberg + + * oct-time.h (octave_time): Revert ::modf to std::modf again now + that cmath is included again. + 2010-03-25 Jaroslav Hajek * lo-math.h: Include both "math.h" and "cmath". diff --git a/liboctave/oct-time.h b/liboctave/oct-time.h --- a/liboctave/oct-time.h +++ b/liboctave/oct-time.h @@ -68,7 +68,7 @@ : ot_unix_time (static_cast (d)), ot_usec (0) { double ip; - ot_usec = static_cast (::modf (d, &ip) * 1e6); + ot_usec = static_cast (std::modf (d, &ip) * 1e6); } octave_time (const octave_base_tm& tm);