On Sun, 29 Dec 2002 13:33:21 -0500 David Megginson <[EMAIL PROTECTED]> wrote:
> Norman Vine writes: > > > IMHO - If at all possible we don't want *more* headers to slow the > > already overly long compile times :-( > > The best way to speed up compile times is to reduce unnecessary > interdependencies. Right now, a lot of header files include other > headers that they don't actually need, so that a one-byte change to a > seemingly innocuous *.hxx file can cause most of FlightGear to be > rebuilt. I'm trying to fix the problems as I find them. FWIW here are patches for src/FDM/ADA.[ch]xx that remove a dependency on <simgear/io/sg_socket.hxx> =================================================================== RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/FDM/ADA.hxx,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 ADA.hxx --- ADA.hxx 10 Sep 2002 01:14:00 -0000 1.1.1.1 +++ ADA.hxx 29 Dec 2002 22:21:15 -0000 @@ -21,7 +21,7 @@ #define _ADA_HXX -#include <simgear/io/sg_socket.hxx> +class SGSocket; #include <FDM/flight.hxx> Index: ADA.cxx =================================================================== RCS file: /var/cvs/FlightGear-0.9/FlightGear/src/FDM/ADA.cxx,v retrieving revision 1.2 diff -u -r1.2 ADA.cxx --- ADA.cxx 3 Dec 2002 14:59:25 -0000 1.2 +++ ADA.cxx 29 Dec 2002 22:21:16 -0000 @@ -23,6 +23,7 @@ #endif #include <simgear/io/iochannel.hxx> +#include <simgear/io/sg_socket.hxx> #include <simgear/constants.h> #include <Controls/controls.hxx> Cheers, Bernie _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
