// Calculate ILS heading
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <simgear/compiler.h>
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
-#include STL_STRING
+#include <string>
#include <plib/sg.h>
#include <simgear/math/sg_geodesy.hxx>
-SG_USING_STD(string);
-SG_USING_STD(cout);
-SG_USING_STD(endl);
+using std::string;
+using std::cout;
+using std::endl;
int main( int argc, char **argv ) {
double rwy_lon = atof( argv[5] );
double rwy_hdg = atof( argv[6] );
double rwy_len = atof( argv[7] ) * SG_DEGREES_TO_RADIANS;
- double rwy_wid = atof( argv[8] );
+ // double rwy_wid = atof( argv[8] );
if ( dir == "FOR" ) {
rwy_hdg += 180.0;