From b9260f543b8dae06c6a80b12c930e367805f34c4 Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sat, 5 May 2012 01:08:20 +0200 Subject: [PATCH] Ganael Laplanche: fix include dependencies for FreeBSD support --- src/AIModel/AIFlightPlanCreate.cxx | 1 + src/AIModel/AIFlightPlanCreatePushBack.cxx | 2 ++ src/ATCDCL/ATCutils.cxx | 1 + src/Airports/runwayprefs.cxx | 1 + src/Autopilot/inputvalue.cxx | 3 +++ src/FDM/YASim/YASim.cxx | 2 ++ src/Instrumentation/KLN89/kln89.cxx | 2 +- src/Instrumentation/KLN89/kln89_page_cal.cxx | 2 ++ src/Instrumentation/KLN89/kln89_page_nav.cxx | 2 ++ src/Instrumentation/dclgps.cxx | 1 + src/Network/ATC-Inputs.cxx | 1 + src/Network/ATC-Outputs.cxx | 1 + src/Network/AV400.cxx | 1 + src/Network/AV400Sim.cxx | 1 + src/Network/atlas.cxx | 1 + src/Network/garmin.cxx | 1 + src/Network/nmea.cxx | 1 + src/Systems/electrical.cxx | 1 + src/Systems/system_mgr.cxx | 1 + 19 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/AIModel/AIFlightPlanCreate.cxx b/src/AIModel/AIFlightPlanCreate.cxx index 63ae6f500..fdb5c5001 100644 --- a/src/AIModel/AIFlightPlanCreate.cxx +++ b/src/AIModel/AIFlightPlanCreate.cxx @@ -22,6 +22,7 @@ # include #endif +#include #include "AIFlightPlan.hxx" #include diff --git a/src/AIModel/AIFlightPlanCreatePushBack.cxx b/src/AIModel/AIFlightPlanCreatePushBack.cxx index 708d71e1d..57cd9a78f 100644 --- a/src/AIModel/AIFlightPlanCreatePushBack.cxx +++ b/src/AIModel/AIFlightPlanCreatePushBack.cxx @@ -22,6 +22,8 @@ # include #endif +#include + #include #include diff --git a/src/ATCDCL/ATCutils.cxx b/src/ATCDCL/ATCutils.cxx index 313405e21..faa48e461 100644 --- a/src/ATCDCL/ATCutils.cxx +++ b/src/ATCDCL/ATCutils.cxx @@ -23,6 +23,7 @@ #endif #include +#include #include #include diff --git a/src/Airports/runwayprefs.cxx b/src/Airports/runwayprefs.cxx index f3110a1a3..fac1807fb 100644 --- a/src/Airports/runwayprefs.cxx +++ b/src/Airports/runwayprefs.cxx @@ -26,6 +26,7 @@ #endif #include +#include #include #include diff --git a/src/Autopilot/inputvalue.cxx b/src/Autopilot/inputvalue.cxx index 6fd686b33..331aede8d 100644 --- a/src/Autopilot/inputvalue.cxx +++ b/src/Autopilot/inputvalue.cxx @@ -18,8 +18,11 @@ // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // +#include + #include "inputvalue.hxx" #include
+ using namespace FGXMLAutopilot; PeriodicalValue::PeriodicalValue( SGPropertyNode_ptr root ) diff --git a/src/FDM/YASim/YASim.cxx b/src/FDM/YASim/YASim.cxx index 6292656d2..91662b6c4 100644 --- a/src/FDM/YASim/YASim.cxx +++ b/src/FDM/YASim/YASim.cxx @@ -3,6 +3,8 @@ # include "config.h" #endif +#include + #include #include #include diff --git a/src/Instrumentation/KLN89/kln89.cxx b/src/Instrumentation/KLN89/kln89.cxx index 75e6a7f84..8147e1006 100644 --- a/src/Instrumentation/KLN89/kln89.cxx +++ b/src/Instrumentation/KLN89/kln89.cxx @@ -1032,7 +1032,7 @@ void KLN89::DrawApt(int x, int y) { ++j; for(i=x-2; i<=x+2; ++i) _instrument->DrawPixel(i, j, (i != x ? true : false)); ++j; - for(i=x-2; i<=x+2; ++i) _instrument->DrawPixel(i, j, (abs(i - x) > 1 ? true : false)); + for(i=x-2; i<=x+2; ++i) _instrument->DrawPixel(i, j, (std::abs(i - x) > 1 ? true : false)); ++j; for(i=x-2; i<=x+2; ++i) _instrument->DrawPixel(i, j, (i != x ? true : false)); ++j; diff --git a/src/Instrumentation/KLN89/kln89_page_cal.cxx b/src/Instrumentation/KLN89/kln89_page_cal.cxx index 5aac2b5e5..9b516d920 100644 --- a/src/Instrumentation/KLN89/kln89_page_cal.cxx +++ b/src/Instrumentation/KLN89/kln89_page_cal.cxx @@ -25,6 +25,8 @@ # include "config.h" #endif +#include + #include
#include "kln89_page_cal.hxx" diff --git a/src/Instrumentation/KLN89/kln89_page_nav.cxx b/src/Instrumentation/KLN89/kln89_page_nav.cxx index 6997a5cf1..05a79963d 100644 --- a/src/Instrumentation/KLN89/kln89_page_nav.cxx +++ b/src/Instrumentation/KLN89/kln89_page_nav.cxx @@ -25,6 +25,8 @@ # include "config.h" #endif +#include + #include "kln89_page_nav.hxx" #include
diff --git a/src/Instrumentation/dclgps.cxx b/src/Instrumentation/dclgps.cxx index 42157d7a1..634d00bbe 100644 --- a/src/Instrumentation/dclgps.cxx +++ b/src/Instrumentation/dclgps.cxx @@ -39,6 +39,7 @@ #include #include +#include using namespace std; diff --git a/src/Network/ATC-Inputs.cxx b/src/Network/ATC-Inputs.cxx index f73ca6a3f..4c4d0ccee 100644 --- a/src/Network/ATC-Inputs.cxx +++ b/src/Network/ATC-Inputs.cxx @@ -31,6 +31,7 @@ # include # include # include +# include # include # include #endif diff --git a/src/Network/ATC-Outputs.cxx b/src/Network/ATC-Outputs.cxx index 97a8df771..5930edb65 100644 --- a/src/Network/ATC-Outputs.cxx +++ b/src/Network/ATC-Outputs.cxx @@ -31,6 +31,7 @@ # include # include # include +# include # include # include #endif diff --git a/src/Network/AV400.cxx b/src/Network/AV400.cxx index bed03b48b..e9a62a39f 100644 --- a/src/Network/AV400.cxx +++ b/src/Network/AV400.cxx @@ -25,6 +25,7 @@ # include "config.h" #endif +#include #include #include diff --git a/src/Network/AV400Sim.cxx b/src/Network/AV400Sim.cxx index 894dcbef8..f7ad8486d 100644 --- a/src/Network/AV400Sim.cxx +++ b/src/Network/AV400Sim.cxx @@ -29,6 +29,7 @@ # include "config.h" #endif +#include #include #include diff --git a/src/Network/atlas.cxx b/src/Network/atlas.cxx index 4a2cd9d64..c48c3add7 100644 --- a/src/Network/atlas.cxx +++ b/src/Network/atlas.cxx @@ -24,6 +24,7 @@ # include "config.h" #endif +#include #include #include diff --git a/src/Network/garmin.cxx b/src/Network/garmin.cxx index e6bc2dcd7..0dddcbf0d 100644 --- a/src/Network/garmin.cxx +++ b/src/Network/garmin.cxx @@ -25,6 +25,7 @@ #endif #include +#include #include #include diff --git a/src/Network/nmea.cxx b/src/Network/nmea.cxx index bbfd3fc0d..a5af33b54 100644 --- a/src/Network/nmea.cxx +++ b/src/Network/nmea.cxx @@ -24,6 +24,7 @@ # include "config.h" #endif +#include #include #include diff --git a/src/Systems/electrical.cxx b/src/Systems/electrical.cxx index 16de41f58..3ff556e28 100644 --- a/src/Systems/electrical.cxx +++ b/src/Systems/electrical.cxx @@ -24,6 +24,7 @@ # include #endif +#include #include #include diff --git a/src/Systems/system_mgr.cxx b/src/Systems/system_mgr.cxx index ce43ddbf8..252ce5438 100644 --- a/src/Systems/system_mgr.cxx +++ b/src/Systems/system_mgr.cxx @@ -16,6 +16,7 @@ #include
#include
+#include #include #include #include -- 2.39.5