comparison 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
comparison
equal deleted inserted replaced
228:be1009c92ac2 229:e7f363452178
90 #include "XGetopt.h" 90 #include "XGetopt.h"
91 #endif 91 #endif
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__ 97 #ifdef __DJGPP__
98 #define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0) 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) 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) 100 #define fseeko(stream, offset, whence) fseek(stream, (long)offset, whence)
101 #define ftello ftell
101 #endif 102 #endif
102 #ifdef HAVE_UNISTD_H 103 #ifdef HAVE_UNISTD_H
103 #include <unistd.h> 104 #include <unistd.h>
104 #else 105 #else
105 #include "XGetopt.h" 106 #include "XGetopt.h"