X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FATC-Main.cxx;h=6c0da9bd96f400b86c3973ae3f9eb51780de72f8;hb=206053722eb59b31ed2fb182044f84bac0058f8a;hp=ed5ac8d9878de4a6cb1e47c3ee7cd2e1b7f78437;hpb=9b8aa717f56866847b1cc2cd99430f3bcbadf237;p=flightgear.git diff --git a/src/Network/ATC-Main.cxx b/src/Network/ATC-Main.cxx index ed5ac8d98..6c0da9bd9 100644 --- a/src/Network/ATC-Main.cxx +++ b/src/Network/ATC-Main.cxx @@ -31,21 +31,22 @@ #include #include #include +#include + #include //snprintf -#if defined( _MSC_VER ) || defined(__MINGW32__) +#ifdef _WIN32 # include //lseek, read, write #endif #include -#include - #include #include #include #include #include #include +#include #include #include
@@ -54,7 +55,9 @@ #include "ATC-Main.hxx" using std::string; - +using std::cout; +using std::endl; +using std::vector; // Lock the ATC hardware static int fgATCMainLock( int fd ) { @@ -96,8 +99,8 @@ void FGATCMain::init_config() { SGPath atcsim_config( envp ); atcsim_config.append( ".fgfs-atc610x.xml" ); try { - SG_LOG(SG_GENERAL, SG_ALERT, - "Warning: loading depricated config file: " << + SG_LOG(SG_NETWORK, SG_ALERT, + "Warning: loading deprecated config file: " << atcsim_config.str() ); readProperties( atcsim_config.str(), globals->get_props() ); } catch (const sg_exception &e) { @@ -222,7 +225,7 @@ bool FGATCMain::process() { FGNasalSys *n = (FGNasalSys*)globals->get_subsystem("nasal"); bool result = n->parseAndRun( "atcsim.update()" ); if ( !result ) { - SG_LOG( SG_GENERAL, SG_ALERT, "Nasal: atcsim.update() failed!" ); + SG_LOG( SG_NETWORK, SG_ALERT, "Nasal: atcsim.update() failed!" ); } // process the ATC outputs