X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FInput%2Ffgjs.cxx;h=5527514d5d49c1098ce62963dd93dd18d27d0422;hb=11d15b451347674fba77648700d23c5aaec3c6c2;hp=726aabbea01c0f0629443b5157d9697c28e7aba0;hpb=d9bfd5a425df1bad7e3c53a64adce871e299a6b9;p=flightgear.git diff --git a/src/Input/fgjs.cxx b/src/Input/fgjs.cxx index 726aabbea..5527514d5 100644 --- a/src/Input/fgjs.cxx +++ b/src/Input/fgjs.cxx @@ -28,8 +28,8 @@ #include -#ifdef _MSC_VER -#include +#if defined( _MSC_VER ) || defined( __MINGW32__ ) +# include #endif #include @@ -38,18 +38,19 @@ #include #include -SG_USING_STD(fstream); -SG_USING_STD(cout); -SG_USING_STD(cin); -SG_USING_STD(endl); -SG_USING_STD(ios); -SG_USING_STD(string); +using std::fstream; +using std::cout; +using std::cin; +using std::endl; +using std::ios; +using std::string; #include #include #include #include #include +#include #include
#include
@@ -80,6 +81,8 @@ int main( int argc, char *argv[] ) { cout << "Usage:" << endl; cout << " --help\t\t\tShow this help" << endl; exit(0); + } else if (strncmp("--fg-root=", argv[i], 10) == 0) { + // used later } else { cout << "Unknown option \"" << argv[i] << "\"" << endl; exit(0); @@ -208,6 +211,7 @@ int main( int argc, char *argv[] ) { delete jsi; delete[] xfs; delete jss; + delete[] jstree; return 1; }