[vos-d] Compiling 0.24 with mingw on windows2000

Reed Hedges reed at interreality.org
Sat Feb 24 11:05:37 EST 2007


Peter Amstutz wrote:
> Uh oh.  Blame Reed.  And the fact that I haven't actually built VOS on 
> Windows for a while...  That particular file was just added recently.  I 
> need to set up a dedicated Windows box for development so I don't have 
> to reboot my main machine (which is Linux).  Perhaps I should get up 
> boot camp and dual boot my MacBook...
> 
> Unless Reed can give you a more specific answer about strftime_r, I'll 
> have to take when I get around to it.  The worst case scenario may be 
> that you can #ifdef out the offending lines, as it is probably only 
> necessary for very specific non-core functionality.

Yeah, that's just a hack to set the timezone used by strftime(). (Anyone 
know if there's a better way to do that?).  You can just put #ifndef 
WIN32 around those calls in strftime_r.c if you want.

However, I'm pretty sure that getenv and setenv exist on MinGW 
somewhere. strftime_r.h includes stdlib.h but maybe on MinGW they're 
actually in unistd.h, or maybe even in windows.h or something.

Reed



More information about the vos-d mailing list