News:

SimuTranslator
Make Simutrans speak your language.

help_frame_t should not depend on system specific functions

Started by Spike, February 02, 2012, 02:01:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spike

help_frame.cc has


// for chdir
#ifdef _WIN32
#include <direct.h>
#else
#include <unistd.h>
#endif


if chdir is needed, but system dependent, it should go into a lower level file, actually one of the "simsys??.cc" (or simsys.cc) files where the system abtraction code resides.

Dwachs

Here is a patch that #includes the relevant headers directly in simsys.h

As I cannot compile for windows (using mingw / MSVS), can somebody please test if it compiles on these systems?

Edit: updated to compile with MSVS.
Parsley, sage, rosemary, and maggikraut.

isidoro


Dwachs

no, my wife works with the windows laptop, so I am bound to a linux pc :D

anyway, this is now incorporated thanks to Tron.
Parsley, sage, rosemary, and maggikraut.

Spike


isidoro

Quote from: Dwachs on February 05, 2012, 01:36:05 PM
no, my wife works with the windows laptop, so I am bound to a linux pc :D
[...]

I understand... ;)
Too good to be true...