Mercurial > libpst
diff src/define.h @ 229:e7f363452178
patch from Fridrich Strba for undefined ENDIAN
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 04 Sep 2009 08:06:22 -0700 |
parents | be1009c92ac2 |
children | 67b24d6a45d6 |
line wrap: on
line diff
--- a/src/define.h Thu Sep 03 15:16:53 2009 -0700 +++ b/src/define.h Fri Sep 04 08:06:22 2009 -0700 @@ -92,12 +92,13 @@ #include <process.h> #undef gmtime_r #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0) - #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0) + #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0) #else #ifdef __DJGPP__ #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0) #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0) #define fseeko(stream, offset, whence) fseek(stream, (long)offset, whence) + #define ftello ftell #endif #ifdef HAVE_UNISTD_H #include <unistd.h>