summaryrefslogtreecommitdiff
path: root/sql/tztime.h
diff options
context:
space:
mode:
authorunknown <dlenev@brandersnatch.localdomain>2004-06-25 21:04:48 +0400
committerunknown <dlenev@brandersnatch.localdomain>2004-06-25 21:04:48 +0400
commit84f61e5a0b922a667e2fc29aec57fe87d7fd56fc (patch)
tree2d00631324d1a7b86d86b1c1b8ef12d30edf98ca /sql/tztime.h
parentd1e4305187a2e2c613f7cd289ad2cd2df914ea18 (diff)
downloadmariadb-git-84f61e5a0b922a667e2fc29aec57fe87d7fd56fc.tar.gz
Removed mysql_tzinfo_to_sql dependancy on sql/mysql_priv.h for circumventing
problems with unresolved dependancies on some platforms. sql/mysql_priv.h: Moved my_time_t definitions to tztime.h to avoid mysql_tzinfo_to_sql dependancy on mysql_priv.h. sql/tztime.cc: Removed mysql_tzinfo_to_sql dependancy from mysql_priv.h sql/tztime.h: Moved my_time_t definitions to tztime.h to avoid mysql_tzinfo_to_sql dependancy on mysql_priv.h.
Diffstat (limited to 'sql/tztime.h')
-rw-r--r--sql/tztime.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/tztime.h b/sql/tztime.h
index ed92441d790..334b14f4fc4 100644
--- a/sql/tztime.h
+++ b/sql/tztime.h
@@ -19,6 +19,14 @@
#pragma interface /* gcc class interface */
#endif
+/*
+ Portable time_t replacement.
+ Should be signed and hold seconds for 1902-2038 range.
+*/
+typedef long my_time_t;
+#define MY_TIME_T_MAX LONG_MAX
+#define MY_TIME_T_MIN LONG_MIN
+
#if !defined(TESTTIME) && !defined(TZINFO2SQL)
/*
This class represents abstract time zone and provides