MSVC++ fixes.
This commit is contained in:
parent
cdd3082998
commit
46a4b960d1
1 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,11 @@
|
||||||
// $Id$
|
// $Id$
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <simgear/compiler.h>
|
||||||
#include <simgear/math/sg_random.h>
|
#include <simgear/math/sg_random.h>
|
||||||
|
|
||||||
#include <Aircraft/aircraft.hxx>
|
#include <Aircraft/aircraft.hxx>
|
||||||
|
@ -820,7 +825,11 @@ void FGRadioStack::search()
|
||||||
// adf
|
// adf
|
||||||
if ( current_navlist->query( lon, lat, elev, adf_freq, &nav ) ) {
|
if ( current_navlist->query( lon, lat, elev, adf_freq, &nav ) ) {
|
||||||
char freq[128];
|
char freq[128];
|
||||||
|
#if defined( _MSC_VER )
|
||||||
|
_snprintf( freq, 10, "%.0f", adf_freq );
|
||||||
|
#else
|
||||||
snprintf( freq, 10, "%.0f", adf_freq );
|
snprintf( freq, 10, "%.0f", adf_freq );
|
||||||
|
#endif
|
||||||
adf_ident = freq;
|
adf_ident = freq;
|
||||||
adf_ident += nav.get_ident();
|
adf_ident += nav.get_ident();
|
||||||
// cout << "adf ident = " << adf_ident << endl;
|
// cout << "adf ident = " << adf_ident << endl;
|
||||||
|
|
Loading…
Reference in a new issue