[Scummvm-cvs-logs] SF.net SVN: scummvm: [31447] scummvm/trunk/common/ptr.h

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Apr 7 23:07:07 CEST 2008


Revision: 31447
          http://scummvm.svn.sourceforge.net/scummvm/?rev=31447&view=rev
Author:   lordhoto
Date:     2008-04-07 14:07:07 -0700 (Mon, 07 Apr 2008)

Log Message:
-----------
Fixed compilation on gcc 2.95.

Modified Paths:
--------------
    scummvm/trunk/common/ptr.h

Modified: scummvm/trunk/common/ptr.h
===================================================================
--- scummvm/trunk/common/ptr.h	2008-04-07 20:56:34 UTC (rev 31446)
+++ scummvm/trunk/common/ptr.h	2008-04-07 21:07:07 UTC (rev 31447)
@@ -175,7 +175,9 @@
 	 * 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 @@
 #endif
 
 
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list