avoid problems with the GNU inliner in gcc 2.96

This commit is contained in:
Jeff Hill
2001-10-23 23:39:01 +00:00
parent 105ecaca8d
commit 7f3eca0394
3 changed files with 19 additions and 17 deletions
+10
View File
@@ -562,3 +562,13 @@ SOCKET casDGIntfIO::makeSockDG ()
return newSock;
}
//
// casDGIntfIO::getFD()
// (avoid problems with the GNU inliner)
//
inline int casDGIntfIO::getFD() const
{
return this->sock;
}
-17
View File
@@ -2,15 +2,6 @@
#ifndef casIODILh
#define casIODILh
//
// casDGIntfIO::getFD()
//
inline int casDGIntfIO::getFD() const
{
return this->sock;
}
//
// casDGIntfIO::getBCastFD()
//
@@ -27,13 +18,5 @@ inline bool casDGIntfIO::validBCastFD() const
return this->bcastRecvSock!=INVALID_SOCKET;
}
//
// casIntfIO::serverAddress ()
//
inline caNetAddr casIntfIO::serverAddress () const
{
return caNetAddr (this->addr);
}
#endif // casIODILh
+9
View File
@@ -221,3 +221,12 @@ void casIntfIO::show(unsigned level) const
}
}
//
// casIntfIO::serverAddress ()
// (avoid problems with GNU inliner)
//
caNetAddr casIntfIO::serverAddress () const
{
return caNetAddr (this->addr);
}