comparison src/define.h @ 228:be1009c92ac2

patch from Fridrich Strba to build with DJGPP DOS cross-compiler
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Sep 2009 15:16:53 -0700
parents 8e17efed33c1
children e7f363452178
comparison
equal deleted inserted replaced
227:adf1db1f0b19 228:be1009c92ac2
92 #include <process.h> 92 #include <process.h>
93 #undef gmtime_r 93 #undef gmtime_r
94 #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0) 94 #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
95 #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0) 95 #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0)
96 #else 96 #else
97 #ifdef __DJGPP__
98 #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
99 #define ctime_r(tp,tmp) (ctime(tp)?(strcpy((tmp),ctime((tp))),(tmp)):0)
100 #define fseeko(stream, offset, whence) fseek(stream, (long)offset, whence)
101 #endif
97 #ifdef HAVE_UNISTD_H 102 #ifdef HAVE_UNISTD_H
98 #include <unistd.h> 103 #include <unistd.h>
99 #else 104 #else
100 #include "XGetopt.h" 105 #include "XGetopt.h"
101 #endif 106 #endif