Am 07.04.2012 15:33, schrieb Geoff McLane: > #ifdef _WIN32 > # include<direct.h> > # include<io.h> > #define unlink _unlink > #define mkdir _mkdir > #else // !_WIN32 > #include<unistd.h> > #endif > > To make windows happy ;=)) and avoid some > warnings...
Yes, looks good. Indeed, I can't see how fgadmin includes unistd.h so far. Björn, let us know if this fixes your issue. I'd push this to Git, if it works. The really nice way to fix this though, would be drop the direct POSIX calls (unlink/remove) and use our simgear wrapper (simgear::Dir::remove) instead. Would remove another platform dependency from our sources. Then again, fgadmin isn't really a hotspot of current FG development ;-). cheers, Thorsten ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Flightgear-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/flightgear-devel

