Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-arcade/wop/files: wop-0.4.3-gcc43.patch
Date: Tue, 27 Jan 2009 14:42:18
Message-Id: E1LRp8p-00009b-TH@stork.gentoo.org
tupone      09/01/27 14:42:15

  Added:                wop-0.4.3-gcc43.patch
  Log:
  Fix gcc-4.3 bug #253496
  (Portage version: 2.1.6.4/cvs/Linux 2.6.27-gentoo-r8 x86_64)

Revision  Changes    Path
1.1                  games-arcade/wop/files/wop-0.4.3-gcc43.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/wop/files/wop-0.4.3-gcc43.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/wop/files/wop-0.4.3-gcc43.patch?rev=1.1&content-type=text/plain

Index: wop-0.4.3-gcc43.patch
===================================================================
--- src/scusibot.cpp.old        2009-01-27 15:22:39.000000000 +0100
+++ src/scusibot.cpp    2009-01-27 15:23:10.000000000 +0100
@@ -5,6 +5,7 @@
 #include "stationarygun.hpp"
 #include "global.hpp"
 #include <vector>
+#include <algorithm>

 ScusiBot::ScusiBot()
        : m_event( Event::EMPTY ), m_count( 0 ), m_state( IDLE ) {
--- src/spriteset.cpp.old       2009-01-27 15:26:39.000000000 +0100
+++ src/spriteset.cpp   2009-01-27 15:27:51.000000000 +0100
@@ -2,6 +2,7 @@

 #include  "spriteset.hpp"
 #include  "global.hpp"
+#include "sprite.hpp"

 /**********************************************************/

@@ -17,6 +18,9 @@
 #endif // SUPPRESS_COLORING
 #endif // BLACK_

+/* force creation of an implementation of SpriteSet<Sprite> */
+static SpriteSet<Sprite> foo;
+
 /**********************************************************/

 template <class T>