aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/ptr.h3
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
+