From fe167327831067005b275593ba388ea676231025 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 20 Oct 2010 13:13:05 +0100 Subject: [PATCH] Fix Win32 compilation - avoid SID name clash with windows.h --- src/Airports/simple.cxx | 10 +++++----- src/Autopilot/route_mgr.cxx | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Airports/simple.cxx b/src/Airports/simple.cxx index f563cf1d0..c7e486f45 100644 --- a/src/Airports/simple.cxx +++ b/src/Airports/simple.cxx @@ -511,13 +511,13 @@ bool FGAirport::buildApproach(Waypt* aEnroute, STAR* aSTAR, FGRunway* aRwy, Wayp return aps.front()->routeFromVectors(aRoute); } -pair +pair FGAirport::selectSID(const SGGeod& aDest, FGRunway* aRwy) { loadProcedures(); WayptRef enroute; - SID* sid = NULL; + flightgear::SID* sid = NULL; double d = 1e9; for (unsigned int i=0; iselectSID(_destination->geod(), runway); @@ -569,7 +569,7 @@ void FGRouteMgr::buildDeparture(WayptRef enroute, WayptVec& wps) FGRunway* r = _departure->getRunwayByIdent(runwayId); string sidId = departure->getStringValue("sid"); - SID* sid = _departure->findSIDWithIdent(sidId); + flightgear::SID* sid = _departure->findSIDWithIdent(sidId); if (!sid) { // valid runway, but no SID selected/found, so just the runway node for now if (!sidId.empty() && (sidId != "(none)")) { -- 2.39.5