From 3b0cf518bc715da36fe9320531861d22a9c6eb55 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 21 Mar 2000 22:06:05 +0000 Subject: [PATCH] MSVC++ tweaks contributed by Christian Mayer. --- src/Cockpit/panel.hxx | 6 +++--- src/FDM/JSBSim/FGRotation.cpp | 2 +- src/FDM/JSBSim/FGUtility.cpp | 4 +++- src/GUI/gui.cxx | 6 +++--- src/Network/fg_file.hxx | 4 +++- src/Network/fg_serial.cxx | 2 +- src/Network/fg_socket.cxx | 36 +++++++++++++++++++++-------------- 7 files changed, 36 insertions(+), 24 deletions(-) diff --git a/src/Cockpit/panel.hxx b/src/Cockpit/panel.hxx index 79a2bee54..f0f0ace82 100644 --- a/src/Cockpit/panel.hxx +++ b/src/Cockpit/panel.hxx @@ -38,11 +38,11 @@ #include #include -#include +#include #include FG_USING_STD(vector); -FG_USING_STD(hash_map); +FG_USING_STD(map); class FGPanelInstrument; @@ -76,7 +76,7 @@ private: ssgTexture * _bg; // Internalization table. - hash_map _textureMap; + map _textureMap; // List of instruments in panel. instrument_list_type _instruments; diff --git a/src/FDM/JSBSim/FGRotation.cpp b/src/FDM/JSBSim/FGRotation.cpp index 43712681c..4385e13aa 100644 --- a/src/FDM/JSBSim/FGRotation.cpp +++ b/src/FDM/JSBSim/FGRotation.cpp @@ -68,7 +68,7 @@ INCLUDES #ifndef M_PI /* get a definition for pi */ -#include +#include #define M_PI FG_PI #endif diff --git a/src/FDM/JSBSim/FGUtility.cpp b/src/FDM/JSBSim/FGUtility.cpp index 6a5225aab..9ed89e70f 100644 --- a/src/FDM/JSBSim/FGUtility.cpp +++ b/src/FDM/JSBSim/FGUtility.cpp @@ -59,7 +59,7 @@ INCLUDES #ifndef M_PI_2 /* get a definition for pi */ -#include +#include #define M_PI_2 FG_PI_2 #endif @@ -82,10 +82,12 @@ FGUtility::~FGUtility() float FGUtility::ToGeodetic() { + return 0.0; } float FGUtility:: FromGeodetic() { + return 0.0; } diff --git a/src/GUI/gui.cxx b/src/GUI/gui.cxx index 44c634fda..7a8a71b94 100644 --- a/src/GUI/gui.cxx +++ b/src/GUI/gui.cxx @@ -70,8 +70,8 @@ #include