Mercurial > hg > octave-nkf
diff liboctave/oct-time.cc @ 3887:7da18459c08b
[project @ 2002-04-04 00:44:21 by jwe]
author | jwe |
---|---|
date | Thu, 04 Apr 2002 00:46:37 +0000 |
parents | ac4609ffc702 |
children | ee4790097033 |
line wrap: on
line diff
--- a/liboctave/oct-time.cc +++ b/liboctave/oct-time.cc @@ -52,7 +52,7 @@ t.tm_yday = tm.yday (); t.tm_isdst = tm.isdst (); -#if defined (HAVE_TM_ZONE) +#if defined (HAVE_STRUCT_TM_TM_ZONE) std::string s = tm.zone (); char *ps = strsave (s.c_str ()); t.tm_zone = ps; @@ -60,7 +60,7 @@ ot_unix_time = mktime (&t); -#if defined (HAVE_TM_ZONE) +#if defined (HAVE_STRUCT_TM_TM_ZONE) delete [] ps; #endif @@ -175,7 +175,7 @@ t.tm_yday = tm_yday; t.tm_isdst = tm_isdst; -#if defined (HAVE_TM_ZONE) +#if defined (HAVE_STRUCT_TM_TM_ZONE) char *ps = strsave (tm_zone.c_str ()); t.tm_zone = ps; #endif @@ -197,7 +197,7 @@ bufsize *= 2; } -#if defined (HAVE_TM_ZONE) +#if defined (HAVE_STRUCT_TM_TM_ZONE) delete [] ps; #endif @@ -224,7 +224,7 @@ tm_yday = t->tm_yday; tm_isdst = t->tm_isdst; -#if defined (HAVE_TM_ZONE) +#if defined (HAVE_STRUCT_TM_TM_ZONE) tm_zone = t->tm_zone; #elif defined (HAVE_TZNAME) if (t->tm_isdst == 0 || t->tm_isdst == 1) @@ -267,7 +267,7 @@ t.tm_yday = 0; t.tm_isdst = 0; -#if defined (HAVE_TM_ZONE) +#if defined (HAVE_STRUCT_TM_TM_ZONE) char *ps = strsave (""); t.tm_zone = ps; #endif @@ -282,7 +282,7 @@ octave_base_tm::init (&t); -#if defined (HAVE_TM_ZONE) +#if defined (HAVE_STRUCT_TM_TM_ZONE) delete ps; #endif }