2 #include "time64_config.h"
8 /* Set our custom types */
9 typedef INT_64_T Int64;
10 typedef Int64 Time64_T;
14 /* A copy of the tm struct but with a 64 bit year */
26 #ifdef HAS_TM_TM_GMTOFF
36 /* Decide which tm struct to use */
44 /* Declare public functions */
45 struct TM *gmtime64_r (const Time64_T *, struct TM *);
46 struct TM *localtime64_r (const Time64_T *, struct TM *);
47 Time64_T timegm64 (struct TM *);
50 /* Not everyone has gm/localtime_r(), provide a replacement */
51 #ifdef HAS_LOCALTIME_R
52 # define LOCALTIME_R(clock, result) localtime_r(clock, result)
54 # define LOCALTIME_R(clock, result) fake_localtime_r(clock, result)
57 # define GMTIME_R(clock, result) gmtime_r(clock, result)
59 # define GMTIME_R(clock, result) fake_gmtime_r(clock, result)