From: mfranz Date: Mon, 17 Apr 2006 13:40:20 +0000 (+0000) Subject: make headers include headers they depend on, don't rely on the c(xx) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e7cab820b7ea40e667fc3b2181ade0f6451e666;p=flightgear.git make headers include headers they depend on, don't rely on the c(xx) file to do that. (This is a requirement for header precompiling.) --- diff --git a/src/GUI/AirportList.cxx b/src/GUI/AirportList.cxx index 9e2496c1e..2cdbd58a3 100644 --- a/src/GUI/AirportList.cxx +++ b/src/GUI/AirportList.cxx @@ -1,4 +1,3 @@ -#include // strncpy() #include
#include diff --git a/src/GUI/AirportList.hxx b/src/GUI/AirportList.hxx index 16a8e8522..acac58bad 100644 --- a/src/GUI/AirportList.hxx +++ b/src/GUI/AirportList.hxx @@ -1,11 +1,17 @@ // AirportList.hxx - scrolling list of airports. #ifndef __AIRPORTLIST_HXX +#define __AIRPORTLIST_HXX + +#include +#include STL_STRING #include #include "puList.hxx" +SG_USING_STD(string); + class FGAirportList; class AirportList : public puList @@ -28,5 +34,3 @@ class AirportList : public puList }; #endif // __AIRPORTLIST_HXX - -// end of AirportList.hxx diff --git a/src/GUI/menubar.cxx b/src/GUI/menubar.cxx index e37bb4caf..90ffca177 100644 --- a/src/GUI/menubar.cxx +++ b/src/GUI/menubar.cxx @@ -10,7 +10,6 @@ #include #include #include
-#include
#include "new_gui.hxx" #include "menubar.hxx" diff --git a/src/GUI/menubar.hxx b/src/GUI/menubar.hxx index 4d21903a5..2bcef85f3 100644 --- a/src/GUI/menubar.hxx +++ b/src/GUI/menubar.hxx @@ -8,6 +8,7 @@ #endif #include // for SG_USING_STD +#include
#include diff --git a/src/Instrumentation/wxradar.cxx b/src/Instrumentation/wxradar.cxx index 2cb747854..83e8848fb 100644 --- a/src/Instrumentation/wxradar.cxx +++ b/src/Instrumentation/wxradar.cxx @@ -25,7 +25,6 @@ #endif #include -#include #include
#include
#include diff --git a/src/Instrumentation/wxradar.hxx b/src/Instrumentation/wxradar.hxx index 5fde855a6..b2f7139f8 100644 --- a/src/Instrumentation/wxradar.hxx +++ b/src/Instrumentation/wxradar.hxx @@ -23,6 +23,8 @@ #ifndef _INST_WXRADAR_HXX #define _INST_WXRADAR_HXX +#include + #include #include #include