From d279c394d739d11b0b0367dc4be220e7b0834c84 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 1 Jul 2010 22:43:28 +0100 Subject: [PATCH] Clean fg_init.hxx --- src/Main/fg_commands.cxx | 1 + src/Main/fg_init.hxx | 22 ++++------------------ src/Main/options.cxx | 1 + src/Network/atlas.cxx | 4 +--- 4 files changed, 7 insertions(+), 21 deletions(-) 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
-- 2.39.2