]> git.mxchange.org Git - flightgear.git/blobdiff - src/Airports/runways.cxx
Default to glider again when model is not present.
[flightgear.git] / src / Airports / runways.cxx
index b768ea61b39a2dbaa0d60b6cb3fa712c72f9b1b0..3d16a3dd9388965712a0e08d4e66b434e0f5b5d7 100644 (file)
 
 SG_USING_NAMESPACE(std);
 
+#ifndef _MSC_VER
+#define NDEBUG                 // MSVC needs this
+#endif // !_MSC_VER
+
+#include <mk4.h>
+#include <mk4str.h>
+
+#ifndef _MSC_VER
+#undef NDEBUG
+#endif // !_MSC_VER
+
+#ifdef SG_HAVE_STD_INCLUDES
+#  include <istream>
+#elif defined( SG_HAVE_NATIVE_SGI_COMPILERS )
+#  include <iostream.h>
+#elif defined( __BORLANDC__ ) || defined (__APPLE__)
+#  include <iostream>
+#else
+#  include <istream.h>
+#endif
 
-FGRunway::FGRunway() {
-}
+#if ! defined( SG_HAVE_NATIVE_SGI_COMPILERS )
+SG_USING_STD(istream);
+#endif
 
+inline istream&
+operator >> ( istream& in, FGRunway& a )
+{
+    int tmp;
 
-FGRunway::~FGRunway() {
+    return in >> a.rwy_no >> a.lat >> a.lon >> a.heading >> a.length >> a.width
+             >> a.surface_flags >> a.end1_flags >> tmp >> tmp >> a.end2_flags
+             >> tmp >> tmp;
 }