+++ /dev/null
-
-#ifndef __SGI_HXX
-#define __SGI_HXX
-
-#include <string>
-
-inline bool
-operator!=( const std::string& lhs, const char* rhs)
-{
- return lhs.compare( rhs ) != 0;
-}
-
-inline bool
-operator!=( const char* lhs, const std::string& rhs)
-{
- return rhs.compare( lhs ) != 0;
-}
-
-inline bool
-operator==( const std::string& lhs, const char* rhs)
-{
- return lhs.compare( rhs ) == 0;
-}
-
-inline bool
-operator==( const char* lhs, const std::string& rhs)
-{
- return rhs.compare( lhs ) == 0;
-}
-
-inline std::string
-operator+(const std::string& lhs, const char* rhs)
-{
- return lhs + std::string(rhs);
-}
-
-inline std::string
-operator+(const char* lhs, const std::string& rhs)
-{
- return std::string(lhs) + rhs;
-}
-
-#endif // !__SGI_HXX
new \
streambuf \
\
- IRIX
+ irix_string
--- /dev/null
+
+#ifndef __SGI_HXX
+#define __SGI_HXX 1
+
+#ifdef __cplusplus
+
+#include <string>
+
+inline bool
+operator!=( const std::string& lhs, const char* rhs)
+{
+ return lhs.compare( rhs ) != 0;
+}
+
+inline bool
+operator!=( const char* lhs, const std::string& rhs)
+{
+ return rhs.compare( lhs ) != 0;
+}
+
+inline bool
+operator==( const std::string& lhs, const char* rhs)
+{
+ return lhs.compare( rhs ) == 0;
+}
+
+inline bool
+operator==( const char* lhs, const std::string& rhs)
+{
+ return rhs.compare( lhs ) == 0;
+}
+
+inline std::string
+operator+(const std::string& lhs, const char* rhs)
+{
+ return lhs + std::string(rhs);
+}
+
+inline std::string
+operator+(const char* lhs, const std::string& rhs)
+{
+ return std::string(lhs) + rhs;
+}
+
+#endif /* __cplusplus */
+
+#endif /* !__SGI_HXX */
#if defined ( sgi ) && !defined( __GNUC__ )
# define SG_HAVE_NATIVE_SGI_COMPILERS
-#include <simgear/compatibility/IRIX>
-
# define SG_EXPLICIT_FUNCTION_TMPL_ARGS
# define SG_CLASS_PARTIAL_SPECIALIZATION
# define SG_NEED_AUTO_PTR
# define STL_ITERATOR <iterator>
# define STL_FSTREAM <fstream>
# define STL_STDEXCEPT <stdexcept>
-# define STL_STRING <string>
+# define STL_STRING <simgear/compatibility/irix_string>
# define STL_STRSTREAM <strstream>
#pragma set woff 1001,1012,1014,1116,1155,1172,1174
#ifndef SG_TABBED_VALUES_HXX
#define SG_TABBED_VALUES_HXX
-#include <vector>
-#include <string>
+#include <simgear/compiler.h>
-#include "simgear/compiler.h"
+#include <vector>
+#include STL_STRING
SG_USING_STD(vector);
SG_USING_STD(string);