X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FNetwork%2FATC-Main.cxx;h=b3cefd228c30cd7b18142051407ab6556c046a06;hb=a1031b052dd40ca3a4ea68dcd7f572b7d9e4bb24;hp=709a812d0d44ce7d6bbee5767980e837f51b924f;hpb=4516233b7b08eb367eb81412312abd09a36a6f62;p=flightgear.git diff --git a/src/Network/ATC-Main.cxx b/src/Network/ATC-Main.cxx index 709a812d0..b3cefd228 100644 --- a/src/Network/ATC-Main.cxx +++ b/src/Network/ATC-Main.cxx @@ -31,15 +31,15 @@ #include #include #include +#include + #include //snprintf -#if defined( _MSC_VER ) || defined(__MINGW32__) +#ifdef _WIN32 # include //lseek, read, write #endif #include -#include - #include #include #include @@ -54,7 +54,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,7 +98,7 @@ void FGATCMain::init_config() { SGPath atcsim_config( envp ); atcsim_config.append( ".fgfs-atc610x.xml" ); try { - SG_LOG(SG_GENERAL, SG_ALERT, + SG_LOG(SG_NETWORK, SG_ALERT, "Warning: loading deprecated config file: " << atcsim_config.str() ); readProperties( atcsim_config.str(), globals->get_props() ); @@ -222,7 +224,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