From 46a4b960d1901133b05f8403be78e0c2a1900ad7 Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 21 Mar 2001 23:16:21 +0000 Subject: [PATCH] MSVC++ fixes. --- src/Cockpit/radiostack.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Cockpit/radiostack.cxx b/src/Cockpit/radiostack.cxx index 7ee37c141..ae0382315 100644 --- a/src/Cockpit/radiostack.cxx +++ b/src/Cockpit/radiostack.cxx @@ -21,6 +21,11 @@ // $Id$ +#ifdef HAVE_CONFIG_H +# include +#endif + +#include #include #include @@ -820,7 +825,11 @@ void FGRadioStack::search() // adf if ( current_navlist->query( lon, lat, elev, adf_freq, &nav ) ) { char freq[128]; +#if defined( _MSC_VER ) + _snprintf( freq, 10, "%.0f", adf_freq ); +#else snprintf( freq, 10, "%.0f", adf_freq ); +#endif adf_ident = freq; adf_ident += nav.get_ident(); // cout << "adf ident = " << adf_ident << endl;