From 4fb5e61162dafd93b6c5f2dcdf6b805538b21657 Mon Sep 17 00:00:00 2001 From: ehofman Date: Mon, 26 Jan 2004 20:06:03 +0000 Subject: [PATCH] MSVC fixes --- src/ATC/AIMgr.cxx | 2 +- src/Cockpit/panel.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ATC/AIMgr.cxx b/src/ATC/AIMgr.cxx index 7c9e60350..c27fb5ce4 100644 --- a/src/ATC/AIMgr.cxx +++ b/src/ATC/AIMgr.cxx @@ -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; } diff --git a/src/Cockpit/panel.cxx b/src/Cockpit/panel.cxx index 7a26ead05..53a9bde58 100644 --- a/src/Cockpit/panel.cxx +++ b/src/Cockpit/panel.cxx @@ -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); } -- 2.39.5