summaryrefslogtreecommitdiff
path: root/time64.c
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2012-11-05 02:19:29 -0500
committerJan Dubois <jand@activestate.com>2012-11-08 16:54:56 -0800
commitdbf7dff66e440223aca0cc87655e65e096264d59 (patch)
tree114e652e01f7ab1861e2abf88de8d086a8ccdb34 /time64.c
parent94f1727772e0683d79e2101f4dc93ac2ef282c4c (diff)
downloadperl-dbf7dff66e440223aca0cc87655e65e096264d59.tar.gz
remove various redundant dTHXes
Remove either unused dTHXes, or remove dTHXes where a nocontext func can be used instead. Smaller/faster machine code is the result.
Diffstat (limited to 'time64.c')
-rw-r--r--time64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/time64.c b/time64.c
index 9faab1046e..7b08d41d65 100644
--- a/time64.c
+++ b/time64.c
@@ -303,7 +303,9 @@ static void S_copy_little_tm_to_big_TM(const struct tm *src, struct TM *dest) {
#ifndef HAS_LOCALTIME_R
/* Simulate localtime_r() to the best of our ability */
static struct tm * S_localtime_r(const time_t *clock, struct tm *result) {
+#ifdef VMS
dTHX; /* in case the following is defined as Perl_my_localtime(aTHX_ ...) */
+#endif
const struct tm *static_result = localtime(clock);
assert(result != NULL);