]> git.mxchange.org Git - simgear.git/commitdiff
Fix missing includes
authorFlorent Rougon <f.rougon@free.fr>
Mon, 23 May 2016 10:10:41 +0000 (12:10 +0200)
committerRoland Haeder <roland@mxchange.org>
Sat, 13 Aug 2016 08:21:16 +0000 (10:21 +0200)
When SimGear header files are included in a particular order, these
missing includes can cause the compilation to fail.

simgear/math/SGGeod.hxx
simgear/math/SGVec2.hxx
simgear/math/SGVec3.hxx

index 8eddbe92ba5f10c2fb9f20765c96ad9085dd8cf6..89461db8814225e258cae6a8e2670bddd842dfeb 100644 (file)
@@ -19,6 +19,7 @@
 #define SGGeod_H
 
 #include <simgear/constants.h>
+#include <simgear/math/SGVec3.hxx>
 
 // #define SG_GEOD_NATIVE_DEGREE
 
index 1ed150d82f4428f194359b61f8e6135cc093f414..49d8b6199df333a0ea1a60774745153e194744b2 100644 (file)
 
 #include <iosfwd>
 
+#include <simgear/math/SGLimits.hxx>
+#include <simgear/math/SGMisc.hxx>
+#include <simgear/math/SGMathFwd.hxx>
+
 /// 2D Vector Class
 template<typename T>
 class SGVec2 {
index b0f6b20625c54b1bb9bce07cb8750ada27657022..68c9c83b85b6f5ef85f2a89daf8db02c94aef1e6 100644 (file)
@@ -20,6 +20,9 @@
 
 #include <iosfwd>
 
+#include <simgear/math/SGVec2.hxx>
+#include <simgear/math/SGGeodesy.hxx>
+
 /// 3D Vector Class
 template<typename T>
 class SGVec3 {