#include <simgear/compiler.h>
-#include <iostream>
-#include <fstream>
#include <math.h>
-#include "IO360.hxx"
+#include STL_FSTREAM
+#include STL_IOSTREAM
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(cout);
+#endif
+
+#include "IO360.hxx"
+
// Static utility functions