Reduce compiler.h to almost nothing (but it's worth keeping around I think, for

the MSVC and MipsPro warning stuff).

As a result of this patch, simgear/sg_traits.h can be deleted. So can SGCMath.h,
but I'll do that separately.

There is one more 'mechanical' change to come - getting rid of SG_USING_STD(X),
but I want to keep that separate from everything else. (There's another mechnica
l change, replacing <math.h> with <cmath> and so on *everywhere*, but one step a
t a time)
This commit is contained in:
ehofman
2008-07-25 18:35:40 +00:00
parent cd72eb20c6
commit 733e6fa14f
81 changed files with 122 additions and 450 deletions
-6
View File
@@ -20,12 +20,6 @@
#include <simgear/compiler.h>
#ifdef SG_HAVE_STD_INCLUDES
// We have cmath from the standard c++ lib available
#include <cmath>
#else
// We only have math.h with the c89 double functions.
#include <math.h>
#endif
#endif
+3 -2
View File
@@ -22,8 +22,9 @@
#include <iosfwd>
// FIXME, make it compile on IRIX
#include <osg/GL>
#undef GLUT_APIENTRY_DEFINED // GL/glut.h undef APIENTRY when this symbol is defined. osg/GL defines it (?).
//#include <osg/GL>
//#undef GLUT_APIENTRY_DEFINED // GL/glut.h undef APIENTRY when this symbol is defined. osg/GL defines it (?).
// This probably would work if we didn't use plib/pu.h that include GL/glut.h
// on its side.
+1 -1
View File
@@ -25,7 +25,7 @@
#include <simgear/compiler.h>
#include STL_STRING
#include <string>
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/sgstream.hxx>
+1 -1
View File
@@ -39,7 +39,7 @@
#include <map>
#include STL_STRING
#include <string>
SG_USING_STD(string);
class SGPropertyNode;
+1 -1
View File
@@ -35,7 +35,7 @@
#include <simgear/compiler.h>
#include STL_STRING
#include <string>
#include <vector>
#include <simgear/math/point3d.hxx>