]> git.mxchange.org Git - simgear.git/blob - simgear/compatibility/IRIX
Safety updates
[simgear.git] / simgear / compatibility / IRIX
1
2 #ifndef __SGI_HXX
3 #define __SGI_HXX
4
5 #include <string>
6
7 inline bool
8 operator!=( const std::string& lhs, const char* rhs)
9 {
10     return lhs.compare( rhs ) != 0;
11 }
12
13 inline bool
14 operator!=( const char* lhs, const std::string& rhs)
15 {
16     return rhs.compare( lhs ) != 0;
17 }
18
19 inline bool
20 operator==( const std::string& lhs, const char* rhs)
21 {
22     return lhs.compare( rhs ) == 0;
23 }
24
25 inline bool
26 operator==( const char* lhs, const std::string& rhs)
27 {
28     return rhs.compare( lhs ) == 0;
29 }
30
31 inline std::string
32 operator+(const std::string& lhs, const char* rhs)
33 {
34     return lhs + std::string(rhs);
35 }
36
37 inline std::string
38 operator+(const char* lhs, const std::string& rhs)
39 {
40     return std::string(lhs) + rhs;
41 }
42
43 #endif // !__SGI_HXX