The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: VS on April 15, 2011, 02:35:18 PM

Title: [bug] can't compile network_cmd_ingame.cc - r4393
Post by: VS on April 15, 2011, 02:35:18 PM
As the title says. Chdir is not omnipresent, so a header is needed... at least for my MSVC:

#ifdef _MSC_VER
#include <direct.h>
#endif


...perhaps the file could use a boilerplate, too :)
Title: Re: [bug] msvc can't compile network_cmd_ingame.cc - r4393
Post by: Ters on April 15, 2011, 04:00:50 PM
I get an error regarding chdir in network_cmd_ingame.cc with mingw, so this has more to do with platform than with compiler.
Title: Re: [bug] can't compile network_cmd_ingame.cc - r4393
Post by: Dwachs on April 15, 2011, 05:44:26 PM
should be fixed now.
Title: Re: [bug] can't compile network_cmd_ingame.cc - r4393
Post by: Ters on April 15, 2011, 06:18:00 PM
It compiles for me at least.
Title: Re: [bug] can't compile network_cmd_ingame.cc - r4393
Post by: VS on April 15, 2011, 08:45:19 PM
Here it's fixed, too.