diff options
author | unknown <dlenev@brandersnatch.localdomain> | 2004-06-25 21:04:48 +0400 |
---|---|---|
committer | unknown <dlenev@brandersnatch.localdomain> | 2004-06-25 21:04:48 +0400 |
commit | 84f61e5a0b922a667e2fc29aec57fe87d7fd56fc (patch) | |
tree | 2d00631324d1a7b86d86b1c1b8ef12d30edf98ca /sql/tztime.h | |
parent | d1e4305187a2e2c613f7cd289ad2cd2df914ea18 (diff) | |
download | mariadb-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.h | 8 |
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 |