Namespace ostream and endl into std::
[oweals/cde.git] / cde / programs / dtsearchpath / dtsp / ManSearchPath.C
index aa8933122f9b079905690db7eeab05b29068b8e8..b03891da6d3a3d4f7a7475ffcb1252a1f094a908 100644 (file)
@@ -118,13 +118,25 @@ void ManSearchPath::Print()
     }
 }
 
+#if defined(linux)
+std::ostream & operator<< 
+       (
+       std::ostream & os, 
+       const ManSearchPath & sp
+       )
+#else
 ostream & operator<< 
        (
        ostream & os, 
        const ManSearchPath & sp
        )
+#endif
 {
+#if defined(linux)
+    os << sp.GetEnvVar() << std::endl;
+#else
     os << sp.GetEnvVar() << endl;
+#endif
     sp.PrettyPrint(os);
     return os;
 }