summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/String.hxx.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-04-19 16:12:19 (GMT)
committerBrad King <brad.king@kitware.com>2007-04-19 16:12:19 (GMT)
commitded4cb6f8d35d2981914256270c11168a0a94b68 (patch)
tree1c23cb28f2930b1b7488cc7fc62f8e9b4af08c37 /Source/kwsys/String.hxx.in
parentd5cb9b1a0d87f116ac2214fab17dd94d368aeeb8 (diff)
downloadCMake-ded4cb6f8d35d2981914256270c11168a0a94b68.zip
CMake-ded4cb6f8d35d2981914256270c11168a0a94b68.tar.gz
CMake-ded4cb6f8d35d2981914256270c11168a0a94b68.tar.bz2
COMP: Fixes for Watcom.
Diffstat (limited to 'Source/kwsys/String.hxx.in')
-rw-r--r--Source/kwsys/String.hxx.in8
1 files changed, 8 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