if ( current_navlist->query( lon, lat, elev, adf_freq, &nav ) ) {
char freq[128];
-#if defined( _MSC_VER ) || defined(__MINGW32__)
- _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;
SG_USING_STD(cout);
#endif
-#if defined(_MSC_VER) || defined(__MINGW32__)
-#define snprintf _snprintf
-#endif /* _MSC_VER */
-
// main.cxx hack, should come from an include someplace
extern void fgInitVisuals( void );
extern void fgReshape( int width, int height );
#endif
SG_USING_STD(string);
-#if defined(_MSC_VER) || defined(__MINGW32__)
-#define snprintf _snprintf
-#endif
-
string axes_humannames[8] = { "elevator", "ailerons", "rudder", "throttle",
"mixture","propller pitch", "lateral view",
"longitudinal view"
#endif
// set default log levels
- sglog().setLogLevels( SG_ALL, SG_INFO );
+ sglog().setLogLevels( SG_ALL, SG_INFO );
string version;
#ifdef FLIGHTGEAR_VERSION
#endif
SG_LOG( SG_GENERAL, SG_INFO, "FlightGear: Version "
<< version );
- SG_LOG( SG_GENERAL, SG_INFO, "Built with " << SG_COMPILER_STR );
+ SG_LOG( SG_GENERAL, SG_INFO, "Built with " << SG_COMPILER_STR << endl );
// Allocate global data structures. This needs to happen before
// we parse command line options
SG_USING_STD(string);
-#if defined( _MSC_VER ) || defined(__MINGW32__)
-# define snprintf _snprintf
-#endif
-
// Lock the ATC 610 hardware
static int ATC610xLock( int fd ) {
// rewind