summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixTime.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-11-07 15:11:43 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-11-07 15:11:43 (GMT)
commit2ad54a6f6e16a3bfde4ce42656ed5cffce7de614 (patch)
tree8450565de03ec8827cafdf1ea6cc4b8a92022d3f /unix/tclUnixTime.c
parent6fff25ecbcc670141c504a6dd0555d01204f761e (diff)
parentd0665d7a121733fde114a357da8ca7369a14aa39 (diff)
downloadtcl-2ad54a6f6e16a3bfde4ce42656ed5cffce7de614.zip
tcl-2ad54a6f6e16a3bfde4ce42656ed5cffce7de614.tar.gz
tcl-2ad54a6f6e16a3bfde4ce42656ed5cffce7de614.tar.bz2
merge 8.7
Diffstat (limited to 'unix/tclUnixTime.c')
-rw-r--r--unix/tclUnixTime.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/tclUnixTime.c b/unix/tclUnixTime.c
index d634449..6a73ac2 100644
--- a/unix/tclUnixTime.c
+++ b/unix/tclUnixTime.c
@@ -22,6 +22,7 @@
* variable is the key to this buffer.
*/
+#ifndef TCL_NO_DEPRECATED
static Tcl_ThreadDataKey tmKey;
typedef struct {
struct tm gmtime_buf;
@@ -45,6 +46,8 @@ static char *lastTZ = NULL; /* Holds the last setting of the TZ
static void SetTZIfNecessary(void);
static void CleanupMemory(ClientData clientData);
+#endif /* TCL_NO_DEPRECATED */
+
static void NativeScaleTime(Tcl_Time *timebuf,
ClientData clientData);
static void NativeGetTime(Tcl_Time *timebuf,
@@ -263,6 +266,7 @@ Tcl_GetTime(
*----------------------------------------------------------------------
*/
+#ifndef TCL_NO_DEPRECATED
struct tm *
TclpGetDate(
const time_t *time,
@@ -352,6 +356,7 @@ TclpLocaltime(
return &tsdPtr->localtime_buf;
}
+#endif /* TCL_NO_DEPRECATED */
/*
*----------------------------------------------------------------------
@@ -486,6 +491,7 @@ NativeGetTime(
*----------------------------------------------------------------------
*/
+#ifndef TCL_NO_DEPRECATED
static void
SetTZIfNecessary(void)
{
@@ -531,6 +537,7 @@ CleanupMemory(
{
ckfree(lastTZ);
}
+#endif /* TCL_NO_DEPRECATED */
/*
* Local Variables: