]> git.mxchange.org Git - flightgear.git/commitdiff
Ganael Laplanche: fix include dependencies for FreeBSD support
authorThorstenB <brehmt@gmail.com>
Fri, 4 May 2012 23:08:20 +0000 (01:08 +0200)
committerThorstenB <brehmt@gmail.com>
Fri, 4 May 2012 23:08:20 +0000 (01:08 +0200)
19 files changed:
src/AIModel/AIFlightPlanCreate.cxx
src/AIModel/AIFlightPlanCreatePushBack.cxx
src/ATCDCL/ATCutils.cxx
src/Airports/runwayprefs.cxx
src/Autopilot/inputvalue.cxx
src/FDM/YASim/YASim.cxx
src/Instrumentation/KLN89/kln89.cxx
src/Instrumentation/KLN89/kln89_page_cal.cxx
src/Instrumentation/KLN89/kln89_page_nav.cxx
src/Instrumentation/dclgps.cxx
src/Network/ATC-Inputs.cxx
src/Network/ATC-Outputs.cxx
src/Network/AV400.cxx
src/Network/AV400Sim.cxx
src/Network/atlas.cxx
src/Network/garmin.cxx
src/Network/nmea.cxx
src/Systems/electrical.cxx
src/Systems/system_mgr.cxx

index 63ae6f5000cfa81765b2a0af39944ead15f5998c..fdb5c50019e82b635f546f8e1ac4e388f78c7d8c 100644 (file)
@@ -22,6 +22,7 @@
 #  include <config.h>
 #endif
 
+#include <cstdlib>
 
 #include "AIFlightPlan.hxx"
 #include <simgear/math/sg_geodesy.hxx>
index 708d71e1dac0f005f7dca76803b9c51393dfe820..57cd9a78fbe8bb815275c142d78efdb7e70365a9 100644 (file)
@@ -22,6 +22,8 @@
 #  include <config.h>
 #endif
 
+#include <cstdlib>
+
 #include <simgear/math/sg_geodesy.hxx>
 
 #include <Airports/simple.hxx>
index 313405e21bdb7cd9b18e68274c4c463f96ee97f3..faa48e461393a4fcd8a7f7b763c20c25e946da1b 100644 (file)
@@ -23,6 +23,7 @@
 #endif
 
 #include <sstream>
+#include <cstdlib>
 
 #include <simgear/math/SGMath.hxx>
 #include <simgear/constants.h>
index f3110a1a3d64a31f3ee5274f6dcf64ad013b0d09..fac1807fb1820daed60be9f78eb696d81b2e5058 100644 (file)
@@ -26,6 +26,7 @@
 #endif
 
 #include <math.h>
+#include <cstdlib>
 #include <cstring>
 
 #include <simgear/compiler.h>
index 6fd686b33cf603bd63d155278bfeb1b0195b62cf..331aede8d2c85041ccc6b36b2ff6e77bef64bdaf 100644 (file)
 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 
+#include <cstdlib>
+
 #include "inputvalue.hxx"
 #include <Main/fg_props.hxx>
+
 using namespace FGXMLAutopilot;
 
 PeriodicalValue::PeriodicalValue( SGPropertyNode_ptr root )
index 6292656d2abc68726addfab8e65664bc60236122..91662b6c4db130a96ecd4b23bc14cd74ddb91c4a 100644 (file)
@@ -3,6 +3,8 @@
 #  include "config.h"
 #endif
 
+#include <cstdlib>
+
 #include <simgear/debug/logstream.hxx>
 #include <simgear/math/sg_geodesy.hxx>
 #include <simgear/misc/sg_path.hxx>
index 75e6a7f8401efbeab0be11446be4431719207016..8147e100676fbff82fa8506e6722004bcfecbc93 100644 (file)
@@ -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;
index 5aac2b5e5ac4a1ccb2d2f3eede9d2552d52be7e1..9b516d92074eb6e91c201b32ef1be9dc04631177 100644 (file)
@@ -25,6 +25,8 @@
 #  include "config.h"
 #endif
 
+#include <cstdlib>
+
 #include <Main/fg_props.hxx>
 #include "kln89_page_cal.hxx"
 
index 6997a5cf1bf4744d4371ec44db527d6f7c3731ea..05a79963d2a8d08126cbd67135bec5ba5fa09c71 100644 (file)
@@ -25,6 +25,8 @@
 #  include "config.h"
 #endif
 
+#include <cstdlib>
+
 #include "kln89_page_nav.hxx"
 #include <Main/fg_props.hxx>
 
index 42157d7a1836ffcde8db0f510c4b7c97977b24eb..634d00bbe3a373820ad7990f2bd847a19bc120df 100644 (file)
@@ -39,6 +39,7 @@
 
 #include <fstream>
 #include <iostream>
+#include <cstdlib>
 
 using namespace std;
 
index f73ca6a3fd7193303c31649554dea0a70e4d8369..4c4d0cceec772c88c44d6927aefcf0ea03671b2e 100644 (file)
@@ -31,6 +31,7 @@
 #  include <sys/types.h>
 #  include <sys/stat.h>
 #  include <fcntl.h>
+#  include <stdlib.h>
 #  include <unistd.h>
 #  include <istream>
 #endif
index 97a8df77169a19635f56fcebec117f52d3178f4e..5930edb6578cc85a3d7c1b82cab5ee05bc82321b 100644 (file)
@@ -31,6 +31,7 @@
 #  include <sys/types.h>
 #  include <sys/stat.h>
 #  include <fcntl.h>
+#  include <stdlib.h>
 #  include <unistd.h>
 #  include <ostream>
 #endif
index bed03b48bd04dc00e20c413b486c7325e23bf353..e9a62a39f070fe1b577e0d171edea93c5bb36872 100644 (file)
@@ -25,6 +25,7 @@
 #  include "config.h"
 #endif
 
+#include <cstdlib>
 #include <cstring>
 
 #include <simgear/debug/logstream.hxx>
index 894dcbef8e1cd1a9401547fd3b42a53069207ebe..f7ad8486d716e9c032c9dd29c86ecce1cd0ed9fc 100644 (file)
@@ -29,6 +29,7 @@
 #  include "config.h"
 #endif
 
+#include <cstdlib>
 #include <cstring>
 
 #include <simgear/debug/logstream.hxx>
index 4a2cd9d64911be983546731be43460db784e7d11..c48c3add732a6e65d0046f8a9ec4b5ae2993df31 100644 (file)
@@ -24,6 +24,7 @@
 #  include "config.h"
 #endif
 
+#include <cstdlib>
 #include <cstring>
 
 #include <simgear/debug/logstream.hxx>
index e6bc2dcd7cfe9411b4058ac92286fb7d7d0d014e..0dddcbf0d0f357b570f362327a1233241e507958 100644 (file)
@@ -25,6 +25,7 @@
 #endif
 
 #include <iostream>
+#include <cstdlib>
 #include <cstring>
 
 #include <simgear/debug/logstream.hxx>
index bbfd3fc0dc5b7ef1c07f481c6d251d115fb1b8b3..a5af33b54318db9b125eda89e626992a8e773ca8 100644 (file)
@@ -24,6 +24,7 @@
 #  include "config.h"
 #endif
 
+#include <cstdlib>
 #include <cstring>
 
 #include <simgear/debug/logstream.hxx>
index 16de41f581e366d208d317d4d8c3cf2af3fe7069..3ff556e282f3ec29981f0a144c8c5a4f50ae0b76 100644 (file)
@@ -24,6 +24,7 @@
 #  include <config.h>
 #endif
 
+#include <cstdlib>
 #include <cstring>
 
 #include <simgear/structure/exception.hxx>
index ce43ddbf847a790bf6bdd78aec248fd2f9ef33fc..252ce543875a03a29767b0bd47e29dbe4b224778 100644 (file)
@@ -16,6 +16,7 @@
 #include <Main/globals.hxx>
 #include <Main/util.hxx>
 
+#include <cstdlib>
 #include <iostream>
 #include <string>
 #include <sstream>