Sunday, December 10, 2006
#include <windows.h>
Ladies and Gents,
Version 3.0h runs on Windows.
Please head straight for the latest download of your choice:
Source
Windows x86-32
OSX PPC
I thought I'd share this first and test it later, let you be the judge.
There are not a lot of platform dependencies. The main() routine has helpful options:
Please file issues here or send mail to <josh.macdonald@gmail.com>.
(Thanks to TortoiseSVN for keeping us in sync.)
Ladies and Gents,
Version 3.0h runs on Windows.
Please head straight for the latest download of your choice:
Source
Windows x86-32
OSX PPC
I thought I'd share this first and test it later, let you be the judge.
There are not a lot of platform dependencies. The main() routine has helpful options:
- /DXD3_STDIO=1 builds with portable I/O routines
- /DEXTERNAL_COMPRESSION=0 builds without external compression, which requires POSIX system calls
The remaining changes were minimal, such as the printf format string for 64bit file offsets. I haven't run a 64bit test on Windows—I was too busy posting this. :-)
static long
get_millisecs_now (void)
{
#ifndef WIN32
struct timeval tv;
gettimeofday (& tv, NULL);
return (tv.tv_sec) * 1000L + (tv.tv_usec) / 1000;
#else
SYSTEMTIME st;
FILETIME ft;
__int64 *pi = (__int64*)&ft;
GetLocalTime(&st);
SystemTimeToFileTime(&st, &ft);
return (long)((*pi) / 10000);
#endif
}
Please file issues here or send mail to <josh.macdonald@gmail.com>.
(Thanks to TortoiseSVN for keeping us in sync.)
Comments:
Post a Comment