From: Pascal Stumpf Date: Tue, 23 Jul 2013 11:21:51 +0000 (+0200) Subject: Kill iostream.h deprecation warnings on *BSD. X-Git-Tag: 2.2.1~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=380232cb93b6e0ecc35d0c9c41cd4ba6572dbc61;p=oweals%2Fcde.git Kill iostream.h deprecation warnings on *BSD. --- diff --git a/cde/programs/dtsearchpath/libCliSrv/TTFile.C b/cde/programs/dtsearchpath/libCliSrv/TTFile.C index 2a0ec64e..d55efac7 100644 --- a/cde/programs/dtsearchpath/libCliSrv/TTFile.C +++ b/cde/programs/dtsearchpath/libCliSrv/TTFile.C @@ -95,7 +95,7 @@ TTFile & TTFile::operator= return *this; } -#if defined(linux) +#if defined(linux) || defined(CSRG_BASED) std::ostream & operator<< ( std::ostream & os, @@ -110,7 +110,7 @@ ostream & operator<< #endif { if (file.ttFileOpFailed()) -#if defined(linux) +#if defined(linux) || defined(CSRG_BASED) return os << "Error in filename mapping; status = " << file.getStatus() << std::endl; #else @@ -118,7 +118,7 @@ ostream & operator<< << file.getStatus() << endl; #endif else -#if defined(linux) +#if defined(linux) || defined(CSRG_BASED) return os << file.data() << std::endl; #else return os << file.data() << endl; diff --git a/cde/programs/dtsearchpath/libCliSrv/TTFile.h b/cde/programs/dtsearchpath/libCliSrv/TTFile.h index b5f0e8af..67f3f79e 100644 --- a/cde/programs/dtsearchpath/libCliSrv/TTFile.h +++ b/cde/programs/dtsearchpath/libCliSrv/TTFile.h @@ -65,7 +65,7 @@ class TTFile : public CString { }; #else void TT_Exception (char *); -#if defined(linux) +#if defined(linux) || defined(CSRG_BASED) friend std::ostream & operator<< (std::ostream &, TTFile &); #else friend ostream & operator<< (ostream &, TTFile &); diff --git a/cde/programs/dtsearchpath/libCliSrv/UnixEnv.C b/cde/programs/dtsearchpath/libCliSrv/UnixEnv.C index e00bb2c5..63e1f986 100644 --- a/cde/programs/dtsearchpath/libCliSrv/UnixEnv.C +++ b/cde/programs/dtsearchpath/libCliSrv/UnixEnv.C @@ -37,7 +37,7 @@ #endif #include #include -#if defined(linux) +#if defined(linux) || defined(CSRG_BASED) #include #else #include diff --git a/cde/programs/dtsearchpath/libCliSrv/cstring.C b/cde/programs/dtsearchpath/libCliSrv/cstring.C index dc735e23..da5e5b05 100644 --- a/cde/programs/dtsearchpath/libCliSrv/cstring.C +++ b/cde/programs/dtsearchpath/libCliSrv/cstring.C @@ -566,7 +566,7 @@ int i; } } -#if defined(linux) +#if defined(linux) || defined(CSRG_BASED) std::ostream & operator<< ( std::ostream & os, diff --git a/cde/programs/dtsearchpath/libCliSrv/cstring.h b/cde/programs/dtsearchpath/libCliSrv/cstring.h index 8de0ba85..8133f7f6 100644 --- a/cde/programs/dtsearchpath/libCliSrv/cstring.h +++ b/cde/programs/dtsearchpath/libCliSrv/cstring.h @@ -32,7 +32,7 @@ #ifndef _CSTRING_H_ #define _CSTRING_H_ -#if defined(linux) +#if defined(linux) || defined(CSRG_BASED) #include #else #include @@ -72,7 +72,7 @@ class CString { int isNull() const; void replace (const CString &, const CString &); -#if defined(linux) +#if defined(linux) || defined(CSRG_BASED) friend std::ostream & operator<< (std::ostream &, const CString &); #else friend ostream & operator<< (ostream &, const CString &);