1
0
Fork 0

MSVC fixes

This commit is contained in:
ehofman 2004-01-26 20:06:03 +00:00
parent e8009ed8fa
commit 4fb5e61162
2 changed files with 2 additions and 2 deletions

View 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;
}

View 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);
}