From 48c909767214dc6ba009cfe3f4354c7d40c1fcdf Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 7 Apr 2008 21:07:07 +0000 Subject: Fixed compilation on gcc 2.95. svn-id: r31447 --- common/ptr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'common') 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 &l, const Common::SharedPtr &r) #endif + -- cgit v1.2.3