From: Tim Moore Date: Sun, 18 Oct 2009 10:08:42 +0000 (+0200) Subject: forward declare Point3D in sg_types.hxx X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b1c49045a8cdf311bc06438ba361c9f815ee4d54;p=simgear.git forward declare Point3D in sg_types.hxx This avoids sucking in SGMath.hxx -- and therefore a bunch of OSG headers -- into many compilation units. --- diff --git a/simgear/io/sg_binobj.hxx b/simgear/io/sg_binobj.hxx index 7fd5eb47..be77d586 100644 --- a/simgear/io/sg_binobj.hxx +++ b/simgear/io/sg_binobj.hxx @@ -33,6 +33,7 @@ #include #include #include +#include #include #include diff --git a/simgear/math/sg_types.hxx b/simgear/math/sg_types.hxx index 4698acec..f413c26b 100644 --- a/simgear/math/sg_types.hxx +++ b/simgear/math/sg_types.hxx @@ -38,7 +38,7 @@ #include #include -#include +class Point3D; using std::vector; using std::string; diff --git a/simgear/misc/texcoord.cxx b/simgear/misc/texcoord.cxx index 2705980d..30af6eff 100644 --- a/simgear/misc/texcoord.cxx +++ b/simgear/misc/texcoord.cxx @@ -149,6 +149,7 @@ enter this in the official comments in case I forget again. :-) #include "texcoord.hxx" +#include // using std::cout; // using std::endl; diff --git a/simgear/scene/sky/oursun.cxx b/simgear/scene/sky/oursun.cxx index e4249989..db7e7319 100644 --- a/simgear/scene/sky/oursun.cxx +++ b/simgear/scene/sky/oursun.cxx @@ -41,6 +41,7 @@ #include #include +#include #include #include #include diff --git a/simgear/scene/tgdb/SGLightBin.hxx b/simgear/scene/tgdb/SGLightBin.hxx index 09df31e3..c6cb6f25 100644 --- a/simgear/scene/tgdb/SGLightBin.hxx +++ b/simgear/scene/tgdb/SGLightBin.hxx @@ -22,6 +22,8 @@ #ifndef SG_LIGHT_BIN_HXX #define SG_LIGHT_BIN_HXX +#include + class SGLightBin { public: struct Light {