diff options
author | Brad King <brad.king@kitware.com> | 2007-04-19 16:12:19 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-04-19 16:12:19 (GMT) |
commit | ded4cb6f8d35d2981914256270c11168a0a94b68 (patch) | |
tree | 1c23cb28f2930b1b7488cc7fc62f8e9b4af08c37 /Source | |
parent | d5cb9b1a0d87f116ac2214fab17dd94d368aeeb8 (diff) | |
download | CMake-ded4cb6f8d35d2981914256270c11168a0a94b68.zip CMake-ded4cb6f8d35d2981914256270c11168a0a94b68.tar.gz CMake-ded4cb6f8d35d2981914256270c11168a0a94b68.tar.bz2 |
COMP: Fixes for Watcom.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/String.hxx.in | 8 | ||||
-rw-r--r-- | Source/kwsys/kwsys_ios_sstream.h.in | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Source/kwsys/String.hxx.in b/Source/kwsys/String.hxx.in index 543db4b..8afbb87 100644 --- a/Source/kwsys/String.hxx.in +++ b/Source/kwsys/String.hxx.in @@ -54,6 +54,14 @@ public: stl_string(s, pos, n) {} }; // End Class: String +#if defined(__WATCOMC__) +inline bool operator<(String const& l, String const& r) + { + return (static_cast<@KWSYS_NAMESPACE@_stl::string const&>(l) < + static_cast<@KWSYS_NAMESPACE@_stl::string const&>(r)); + } +#endif + } // namespace @KWSYS_NAMESPACE@ #endif diff --git a/Source/kwsys/kwsys_ios_sstream.h.in b/Source/kwsys/kwsys_ios_sstream.h.in index c8832a1..ce06d1e 100644 --- a/Source/kwsys/kwsys_ios_sstream.h.in +++ b/Source/kwsys/kwsys_ios_sstream.h.in @@ -95,6 +95,8 @@ public: // Visual Studio 6 has a strstream::pcount, but this is not rdbuf()->pcount() #if (@KWSYS_NAMESPACE@_IOS_USE_STRSTREA_H) && defined(_MSC_VER) && (_MSC_VER == 1200) int count = this->pcount(); +#elif defined(__WATCOMC__) + int count = this->rdbuf()->out_waiting(); #else int count = this->rdbuf()->pcount(); #endif @@ -151,6 +153,10 @@ private: # pragma warning (push) # pragma warning (disable: 4097) /* typedef-name used as synonym for class */ #endif +#if defined(__WATCOMC__) +// W728: class modifiers for 'A' conflict with class modifiers for 'B' +# pragma warning 728 10 +#endif class istringstream: private kwsys_stl::string, public istrstream { @@ -172,6 +178,9 @@ private: void operator=(const istringstream&); }; +#if defined(__WATCOMC__) +# pragma warning 728 9 +#endif #if defined(_MSC_VER) # pragma warning (pop) #endif |