diff --git a/src/Main/fg_commands.cxx b/src/Main/fg_commands.cxx index 1a85d9b8a..96acc84e3 100644 --- a/src/Main/fg_commands.cxx +++ b/src/Main/fg_commands.cxx @@ -21,6 +21,7 @@ #include #include #include +#include #include #include diff --git a/src/Main/fg_init.hxx b/src/Main/fg_init.hxx index e4a254fd0..1fc53a6ff 100644 --- a/src/Main/fg_init.hxx +++ b/src/Main/fg_init.hxx @@ -25,25 +25,11 @@ #ifndef _FG_INIT_HXX #define _FG_INIT_HXX - -#ifndef __cplusplus -# error This library requires C++ -#endif - - -#ifdef HAVE_CONFIG -# include -#endif - -#include -#include - #include -#include - -using std::string; - +// forward decls +class SGPropertyNode; +class SGTime; // Read in configuration (files and command line optoins) but only set // fg_root @@ -51,7 +37,7 @@ bool fgInitFGRoot ( int argc, char **argv ); // Return the current base package version -string fgBasePackageVersion(); +std::string fgBasePackageVersion(); // Read in configuration (file and command line) diff --git a/src/Main/options.cxx b/src/Main/options.cxx index abcd85535..2263a991c 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -28,6 +28,7 @@ #include #include #include +#include #include // rint() #include diff --git a/src/Network/atlas.cxx b/src/Network/atlas.cxx index 20b348569..f1c940c96 100644 --- a/src/Network/atlas.cxx +++ b/src/Network/atlas.cxx @@ -27,9 +27,7 @@ #include #include #include - - - +#include #include #include