]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/fg_io.cxx
One more Mac helper moved into CocoaHelpers.mm
[flightgear.git] / src / Main / fg_io.cxx
index cd66cf0c6447a7b689067f5446cc57a286c4f13e..45d6a1e61ad926dd62939817636c2a53d8caae8f 100644 (file)
@@ -49,6 +49,7 @@
 #include <Network/AV400WSim.hxx>
 #include <Network/garmin.hxx>
 #include <Network/httpd.hxx>
+#include <Network/igc.hxx>
 #ifdef FG_JPEG_SERVER
 #  include <Network/jpg-httpd.hxx>
 #endif
@@ -66,7 +67,7 @@
 #include <Network/rul.hxx>
 #include <Network/generic.hxx>
 
-#ifdef FG_HAVE_HLA
+#if FG_HAVE_HLA
 #include <Network/HLA/hla.hxx>
 #endif
 
@@ -147,6 +148,9 @@ FGIO::parse_port_config( const string& config )
         } else if ( protocol == "garmin" ) {
             FGGarmin *garmin = new FGGarmin;
             io = garmin;
+        } else if ( protocol == "igc" ) {
+            IGCProtocol *igc = new IGCProtocol;
+            io = igc;
         } else if ( protocol == "httpd" ) {
             // determine port
             string port = tokens[1];
@@ -224,7 +228,7 @@ FGIO::parse_port_config( const string& config )
 
             return NULL;
         }
-#ifdef FG_HAVE_HLA
+#if FG_HAVE_HLA
         else if ( protocol == "hla" ) {
             return new FGHLA(tokens);
         }