MSVC fixes
This commit is contained in:
parent
e8009ed8fa
commit
4fb5e61162
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue