From f2d4c718ec4bc26886d4aec0ded9308378660321 Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 27 Jan 2005 14:50:58 +0000 Subject: add TIMET64 for both 4 or 8 bytes time_t git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2438 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'include/proto.h') diff --git a/include/proto.h b/include/proto.h index 434e8e3d..b211ff1c 100644 --- a/include/proto.h +++ b/include/proto.h @@ -574,9 +574,15 @@ int towrite(int fd, void *buf, int len); #ifdef PLAY_ANGEL void pressanykey_or_callangel(void); #endif -struct tm *localtime4(time4_t *); -time4_t time4(time4_t *); -char *ctime4(time4_t *); +#ifdef TIMET64 + struct tm *localtime4(time4_t *); + time4_t time4(time4_t *); + char *ctime4(time4_t *); +#else + #define localtime4(a) localtime(a) + #define time4(a) time(a) + #define ctime4(a) ctime(a) +#endif /* syspost */ int post_msg(char* bname, char* title, char *msg, char* author); -- cgit v1.2.3