Mercurial > octave-nkf
diff liboctave/oct-time.cc @ 11005:0de4eff677d6
use mktime module from gnulib
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 20 Sep 2010 21:23:10 -0400 |
parents | bbe99b2a5ba7 |
children | 331fcc41ca23 |
line wrap: on
line diff
--- a/liboctave/oct-time.cc Mon Sep 20 20:39:56 2010 -0400 +++ b/liboctave/oct-time.cc Mon Sep 20 21:23:10 2010 -0400 @@ -58,7 +58,7 @@ t.tm_zone = ps; #endif - ot_unix_time = mktime (&t); + ot_unix_time = gnulib::mktime (&t); #if defined (HAVE_STRUCT_TM_TM_ZONE) delete [] ps; @@ -272,7 +272,7 @@ if (t.tm_mday != 0 && t.tm_mon >= 0 && t.tm_year != INT_MIN) { t.tm_isdst = -1; - mktime (&t); + gnulib::mktime (&t); } if (t.tm_mon < 0)