diff options
author | unknown <konstantin@mysql.com> | 2004-08-05 14:16:43 -0700 |
---|---|---|
committer | unknown <konstantin@mysql.com> | 2004-08-05 14:16:43 -0700 |
commit | 9919574acfe36f2841dae33c729367658cc84078 (patch) | |
tree | 9397442b1136ff001e87120f0c52fde79df7dbc5 /include/my_time.h | |
parent | 61528cf2d8ecb68e6c10f50e06678043db668565 (diff) | |
download | mariadb-git-9919574acfe36f2841dae33c729367658cc84078.tar.gz |
Cleanup in mysql_time.h/my_time.h headers. The first is used in mysql.h,
the second is for the rest of time declarations in mysys.
include/my_time.h:
New declarations moved from mysql_time.h
include/mysql_time.h:
New declarations moved to my_time.h.
sql/tztime.cc:
Enforcing Monty's approach to header files.
sql/tztime.h:
Enforcing Monty's approach to header files: everything is included in
one place.
Diffstat (limited to 'include/my_time.h')
-rw-r--r-- | include/my_time.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/my_time.h b/include/my_time.h index 1212f0533e2..1c549ced6b0 100644 --- a/include/my_time.h +++ b/include/my_time.h @@ -28,6 +28,15 @@ C_MODE_START extern ulonglong log_10_int[20]; +/* + 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 + #define YY_PART_YEAR 70 /* Flags to str_to_datetime */ |