]> git.mxchange.org Git - simgear.git/blob - simgear/compatibility/MIPSpro721/irix_string
restore some part of the code to prevent an untwanted segmentationf fault.
[simgear.git] / simgear / compatibility / MIPSpro721 / irix_string
1
2 #ifndef __SGI_HXX
3 #define __SGI_HXX 1
4
5 #ifdef __cplusplus
6
7 #include <string>
8
9 inline bool
10 operator!=( const std::string& lhs, const char* rhs)
11 {
12     return lhs.compare( rhs ) != 0;
13 }
14
15 inline bool
16 operator!=( const char* lhs, const std::string& rhs)
17 {
18     return rhs.compare( lhs ) != 0;
19 }
20
21 inline bool
22 operator==( const std::string& lhs, const char* rhs)
23 {
24     return lhs.compare( rhs ) == 0;
25 }
26
27 inline bool
28 operator==( const char* lhs, const std::string& rhs)
29 {
30     return rhs.compare( lhs ) == 0;
31 }
32
33 inline std::string
34 operator+(const std::string& lhs, const char* rhs)
35 {
36     return lhs + std::string(rhs);
37 }
38
39 inline std::string
40 operator+(const char* lhs, const std::string& rhs)
41 {
42     return std::string(lhs) + rhs;
43 }
44
45 #endif /* __cplusplus */
46
47 #endif /* !__SGI_HXX */