Namespace ostream and endl into std::
[oweals/cde.git] / cde / programs / dtsearchpath / dtsp / SearchPath.h
index e6d2e797d627e8e442524303879514e9169602a5..0902590fd29fd1f722ff6190b375571c9852da8b 100644 (file)
@@ -50,9 +50,16 @@ class SearchPath {
   virtual void ExportPath();
   virtual void Print();
   virtual void AddPredefinedPath();
+
+#if defined(linux)
+  virtual void PrettyPrint (std::ostream &) const;
+
+  friend std::ostream & operator<< (std::ostream &, const SearchPath &);
+#else
   virtual void PrettyPrint (ostream &) const;
 
   friend ostream & operator<< (ostream &, const SearchPath &);
+#endif
 
   const char *  GetEnvVar() const    { return environment_var; }
   CString       GetSearchPath() const { return final_search_path; }
@@ -178,7 +185,11 @@ class ManSearchPath : public SearchPath {
   virtual void    ExportPath ();
   virtual void    Print();
 
+#if defined(linux)
+  friend std::ostream & operator<< (std::ostream &, const ManSearchPath &);
+#else
   friend ostream & operator<< (ostream &, const ManSearchPath &);
+#endif
 
  protected:
   virtual void    MakePath (const CString &);