]> git.mxchange.org Git - flightgear.git/blobdiff - src/Network/ATC-Main.cxx
NavDisplay - custom symbol support enabled.
[flightgear.git] / src / Network / ATC-Main.cxx
index ed5ac8d9878de4a6cb1e47c3ee7cd2e1b7f78437..b3cefd228c30cd7b18142051407ab6556c046a06 100644 (file)
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <errno.h>
+
 #include <stdio.h>              //snprintf
-#if defined( _MSC_VER ) || defined(__MINGW32__)
+#ifdef _WIN32
 #  include <io.h>                 //lseek, read, write
 #endif
 
 #include <string>
 
-#include <plib/ul.h>
-
 #include <simgear/debug/logstream.hxx>
 #include <simgear/props/props_io.hxx>
 #include <simgear/io/iochannel.hxx>
@@ -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,8 +98,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 +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