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.)
This commit is contained in:
mfranz
2006-04-17 11:29:01 +00:00
parent 73c0ef59c1
commit efac53b121
21 changed files with 26 additions and 24 deletions

View File

@@ -23,7 +23,6 @@
# include <simgear_config.h>
#endif
#include <plib/sg.h>
#include <simgear/constants.h>
#include <simgear/structure/SGReferenced.hxx>
#include <simgear/structure/SGSharedPtr.hxx>

View File

@@ -22,6 +22,8 @@
#ifndef _VISUAL_ENVIRO_HXX
#define _VISUAL_ENVIRO_HXX
#include <plib/sg.h>
#include <simgear/compiler.h>
#include STL_STRING
#include <vector>

View File

@@ -14,9 +14,6 @@
#include <vector>
#include <map>
SG_USING_STD(vector);
SG_USING_STD(map);
#include <plib/sg.h>
#include <plib/ssg.h>
@@ -24,6 +21,9 @@ SG_USING_STD(map);
#include <simgear/props/props.hxx>
#include <simgear/misc/sg_path.hxx>
SG_USING_STD(vector);
SG_USING_STD(map);
// Don't pull in the headers, since we don't need them here.
class SGInterpTable;

View File

@@ -2,7 +2,6 @@
$Id$
*/
#include "plib/ssg.h"
#include "custtrans.hxx"
void _ssgPushMatrix ( sgMat4 m );
void _ssgPopMatrix ();

View File

@@ -5,6 +5,8 @@
#ifndef _SG_CUSTOM_TRANSFORM_HXX
#define _SG_CUSTOM_TRANSFORM_HXX 1
#include "plib/ssg.h"
class SGCustomTransform : public ssgBranch
{
public:

View File

@@ -7,8 +7,6 @@
#include <simgear_config.h>
#endif
#include <simgear/compiler.h>
#include <string.h> // for strcmp()
#include <vector>

View File

@@ -10,6 +10,8 @@
# error This library requires C++
#endif
#include <simgear/compiler.h>
#include <vector>
#include <set>

View File

@@ -2,8 +2,6 @@
* $Id$
*/
#include <simgear/compiler.h>
#include "personality.hxx"
void SGPersonalityBranch::setDoubleValue( double value, SGAnimation *anim, int var_id, int var_num )

View File

@@ -5,12 +5,13 @@
#ifndef _SG_PERSONALITY_HXX
#define _SG_PERSONALITY_HXX 1
#include <simgear/compiler.h>
#include <plib/ssg.h>
#include <map>
SG_USING_STD(map);
#include <plib/ssg.h>
class SGAnimation;
class SGPersonalityBranch : public ssgBranch {

View File

@@ -25,8 +25,6 @@
#endif
#include <plib/sg.h>
#include <plib/ssg.h>
#include <simgear/props/props.hxx>
#include <simgear/debug/logstream.hxx>
#include <simgear/screen/extensions.hxx>
#include <simgear/scene/model/animation.hxx>

View File

@@ -23,9 +23,13 @@
#ifndef _SHADOWVOLUME_HXX
#define _SHADOWVOLUME_HXX
#include <simgear/compiler.h>
#include <simgear/structure/ssgSharedPtr.hxx>
#include <simgear/props/props.hxx>
#include <plib/ssg.h>
#include <plib/sg.h>
#include <vector>
#include <map>

View File

@@ -36,7 +36,6 @@
#include <simgear/math/polar3d.hxx>
#include <simgear/math/sg_random.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/sg_path.hxx>
#include <simgear/screen/extensions.hxx>
#include <simgear/screen/texture.hxx>
#include <simgear/structure/ssgSharedPtr.hxx>

View File

@@ -28,6 +28,7 @@
#define _SG_CLOUD_HXX_
#include <simgear/compiler.h>
#include <simgear/misc/sg_path.hxx>
#include <plib/ssg.h>

View File

@@ -27,7 +27,6 @@
#include <plib/sg.h>
#include <simgear/scene/material/mat.hxx>
#include <simgear/scene/material/matlib.hxx>
#include "vasi.hxx"

View File

@@ -39,6 +39,7 @@
#include <plib/ssg.h> // plib include
#include <simgear/math/sg_types.hxx>
#include <simgear/scene/material/matlib.hxx>
SG_USING_STD(string);
SG_USING_STD(vector);

View File

@@ -15,10 +15,6 @@
#include <limits.h>
#include <string.h> // memcpy()
#include <simgear/compiler.h>
#include SG_GL_H
#include "GLBitmaps.h"
GlBitmap::GlBitmap( GLenum mode, GLint width, GLint height, GLubyte *bitmap )

View File

@@ -1,3 +1,7 @@
#include <simgear/compiler.h>
#include SG_GL_H
class GlBitmap
{
public:

View File

@@ -25,9 +25,6 @@
# include <windows.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <plib/ssg.h>
#include "jpgfactory.hxx"

View File

@@ -27,6 +27,8 @@
extern "C" {
#endif
#include <stdlib.h>
#include <stdio.h>
#include <jpeglib.h>
#include <jerror.h>

View File

@@ -22,7 +22,7 @@
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
# include <simgear_config.h>
#endif
#include "ssgEntityArray.hxx"

View File

@@ -2,7 +2,7 @@
#define _SSG_ENTITY_ARRAY_HXX
#ifdef HAVE_CONFIG_H
# include <config.h>
# include <simgear_config.h>
#endif
#include <plib/ssg.h>