]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGfdmSocket.cpp
Make yasim accept the launchbar and hook properties. They are not tied to anything...
[flightgear.git] / src / FDM / JSBSim / FGfdmSocket.cpp
index 190d175980149823b7c79eb3df2c8f17228db87f..b63b65abc6a38c161e7e380c6d65322f429132b1 100644 (file)
@@ -39,6 +39,8 @@ INCLUDES
 
 #include "FGfdmSocket.h"
 
+namespace JSBSim {
+
 static const char *IdSrc = "$Id$";
 static const char *IdHdr = ID_FDMSOCKET;
 
@@ -51,9 +53,9 @@ FGfdmSocket::FGfdmSocket(string address, int port)
   size = 0;
   connected = false;
 
-#if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
+  #if defined(__BORLANDC__) || defined(_MSC_VER) || defined(__MINGW32__)
     WSADATA wsaData;
-    int PASCAL FAR wsaReturnCode;
+    int wsaReturnCode;
     wsaReturnCode = WSAStartup(MAKEWORD(1,1), &wsaData);
     if (wsaReturnCode == 0) cout << "Winsock DLL loaded ..." << endl;
     else cout << "Winsock DLL not initialized ..." << endl;
@@ -204,4 +206,4 @@ void FGfdmSocket::Debug(int from)
     }
   }
 }
-
+}