comparison src/define.h @ 212:8e17efed33c1

patch from Fridrich Strba to build on win32
author Carl Byington <carl@five-ten-sg.com>
date Mon, 08 Jun 2009 13:51:24 -0700
parents 5f3fa53cb0e1
children be1009c92ac2
comparison
equal deleted inserted replaced
211:94bde95d7e18 212:8e17efed33c1
87 #ifdef __MINGW32__ 87 #ifdef __MINGW32__
88 #include <getopt.h> 88 #include <getopt.h>
89 #else 89 #else
90 #include "XGetopt.h" 90 #include "XGetopt.h"
91 #endif 91 #endif
92 #include <process.h>
93 #undef gmtime_r
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)
92 #else 96 #else
93 #ifdef HAVE_UNISTD_H 97 #ifdef HAVE_UNISTD_H
94 #include <unistd.h> 98 #include <unistd.h>
95 #else 99 #else
96 #include "XGetopt.h" 100 #include "XGetopt.h"