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
+2 -18
View File
@@ -31,13 +31,8 @@
# include <windows.h>
#endif
#ifdef SG_HAVE_STD_INCLUDES
# include <streambuf>
# include <ostream>
#else
# include <iostream.h>
# include <simgear/sg_traits.hxx>
#endif
#include <streambuf>
#include <ostream>
#include <simgear/debug/debug_types.h>
@@ -64,13 +59,6 @@ class logbuf : public std::streambuf
#endif
{
public:
#ifndef SG_HAVE_STD_INCLUDES
typedef char_traits<char> traits_type;
typedef char_traits<char>::int_type int_type;
// typedef char_traits<char>::pos_type pos_type;
// typedef char_traits<char>::off_type off_type;
#endif
// logbuf( streambuf* sb ) : sbuf(sb) {}
/** Constructor */
logbuf();
@@ -167,11 +155,7 @@ private:
inline int
logbuf::sync()
{
#ifdef SG_HAVE_STD_INCLUDES
return sbuf->pubsync();
#else
return sbuf->sync();
#endif
}
inline void