diff options
author | Johannes Schickel | 2008-04-07 21:07:07 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-04-07 21:07:07 +0000 |
commit | 48c909767214dc6ba009cfe3f4354c7d40c1fcdf (patch) | |
tree | 258f777e15bd94765b3d277d54e31dedc994d04d /common | |
parent | 1aac71ae343dbeb06feadbe92a25105d66b356a0 (diff) | |
download | scummvm-rg350-48c909767214dc6ba009cfe3f4354c7d40c1fcdf.tar.gz scummvm-rg350-48c909767214dc6ba009cfe3f4354c7d40c1fcdf.tar.bz2 scummvm-rg350-48c909767214dc6ba009cfe3f4354c7d40c1fcdf.zip |
Fixed compilation on gcc 2.95.
svn-id: r31447
Diffstat (limited to 'common')
-rw-r--r-- | common/ptr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/ptr.h b/common/ptr.h index 038ee7722f..eea3c39882 100644 --- a/common/ptr.h +++ b/common/ptr.h @@ -175,7 +175,9 @@ public: * This should just be used for debugging purposes. */ RefValue refCount() const { return _refCount ? *_refCount : 0; } +#if !((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95)) private: +#endif void decRef() { if (_refCount) { --(*_refCount); @@ -210,3 +212,4 @@ bool operator !=(const Common::SharedPtr<T1> &l, const Common::SharedPtr<T2> &r) #endif + |