pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2004-12-14
2004-12-14 16:26:28 by Martin Stjernholm <mast@lysator.liu.se>
e76c57fe563b59c2916ce57e16e466ceb777533a (
11
lines) (+
3
/-
8
)
[
Show
|
Annotate
]
Branch:
7.6
Corrected the last check-in.
Rev: src/builtin_functions.c:1.550
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: builtin_functions.c,v 1.
549
2004/12/14 16:
22
:
00
mast Exp $
+
|| $Id: builtin_functions.c,v 1.
550
2004/12/14 16:
26
:
28
mast Exp $
*/ #include "global.h"
-
RCSID("$Id: builtin_functions.c,v 1.
549
2004/12/14 16:
22
:
00
mast Exp $");
+
RCSID("$Id: builtin_functions.c,v 1.
550
2004/12/14 16:
26
:
28
mast Exp $");
#include "interpret.h" #include "svalue.h" #include "pike_macros.h"
4629:
Inside #if 0
* /mast */ if ((isdst != -1) && (isdst != date.tm_isdst)) { /* Some stupid libc's (Hi Linux!) don't accept that we've set isdst... */
-
#ifdef HAVE_LOCALTIME
-
if (!my_time_inverse (&date, &retval, localtime))
-
PIKE_ERROR("mktime", "Cannot convert.\n", Pike_sp, args);
-
#else
-
/* Last resort: Assumes a one hour DST. */
+
retval += 3600 * (isdst - date.tm_isdst);
-
#endif
+
} #endif /* 0 */ }