From: curt Date: Thu, 11 Apr 2002 16:35:37 +0000 (+0000) Subject: MSVC fixes. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9f8c4f96002c342c6bda3017f91ae0d8808323a6;p=flightgear.git MSVC fixes. --- diff --git a/src/Main/viewer.cxx b/src/Main/viewer.cxx index 64a6d906f..2c3fde746 100644 --- a/src/Main/viewer.cxx +++ b/src/Main/viewer.cxx @@ -26,7 +26,7 @@ #include -#include +#include "fg_props.hxx" #ifdef HAVE_CONFIG_H # include diff --git a/src/Network/net_fdm.hxx b/src/Network/net_fdm.hxx index e8262f021..e40b7916a 100644 --- a/src/Network/net_fdm.hxx +++ b/src/Network/net_fdm.hxx @@ -48,9 +48,11 @@ public: // SPARC, which don't like misaligned // data - static const int FG_MAX_ENGINES = 4; - static const int FG_MAX_WHEELS = 3; - static const int FG_MAX_TANKS = 2; + enum { + FG_MAX_ENGINES = 4, + FG_MAX_WHEELS = 3, + FG_MAX_TANKS = 2 + }; // Positions double longitude; // geodetic (radians) diff --git a/src/Network/raw_ctrls.hxx b/src/Network/raw_ctrls.hxx index e39591a10..4f1688c5c 100644 --- a/src/Network/raw_ctrls.hxx +++ b/src/Network/raw_ctrls.hxx @@ -41,8 +41,10 @@ public: int version; // increment when data values change - static const int FG_MAX_ENGINES = 4; - static const int FG_MAX_WHEELS = 3; + enum { + FG_MAX_ENGINES = 4, + FG_MAX_WHEELS = 3 + }; // Aero controls double aileron; // -1 ... 1