]> git.mxchange.org Git - flightgear.git/commitdiff
MSVC fixes
authorehofman <ehofman>
Mon, 26 Jan 2004 20:06:03 +0000 (20:06 +0000)
committerehofman <ehofman>
Mon, 26 Jan 2004 20:06:03 +0000 (20:06 +0000)
src/ATC/AIMgr.cxx
src/Cockpit/panel.cxx

index 7c9e60350241357f74c33c6ab6af56742372814e..c27fb5ce43417c4d5273c75c7b24adb6c9d7c283 100644 (file)
@@ -121,7 +121,7 @@ void FGAIMgr::init() {
                                        if(facilities.find(idx) != facilities.end()) {
                                                facilities[idx]->push_back(f_ident);
                                        } else {
-                                               aptID_list_type* apts = new aptID_list_type;
+                                               ID_list_type* apts = new ID_list_type;
                                                apts->push_back(f_ident);
                                                facilities[idx] = apts;
                                        }
index 7a26ead05eae4c35fea33456075bf352963338a6..53a9bde58a4c546387d384958e1bb021e8d3c0d7 100644 (file)
@@ -53,7 +53,7 @@
 // my hardware/driver requires many more.
 #define POFF_UNITS 4
 
-#ifdef __FreeBSD__     // no truncf on FreeBSD
+#if defined( __FreeBSD__ ) || defined( _MSC_VER )      // no truncf on FreeBSD nor in MSVC
 inline float truncf (float d) {
     return (d < 0) ? -floorf(-d) : floorf(d);
 }