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 callsA call to gettimeofday() had to be replaced: 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 } 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. :-)
Please file issues here or send mail to <josh.macdonald@gmail.com>.
Untitled
No comments yet. -