From: Tupone Alfredo Date: Sun, 17 Apr 2016 08:24:58 +0000 (+0200) Subject: dev-games/crystalspace: Fix build with gcc-5 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=dbae5dff6178aac6872743824f765be3d2564d86;p=gentoo.git dev-games/crystalspace: Fix build with gcc-5 Package-Manager: portage-2.2.26 --- diff --git a/dev-games/crystalspace/crystalspace-2.0-r1.ebuild b/dev-games/crystalspace/crystalspace-2.0-r1.ebuild index e90bc2ee8f93..20aaa6f22755 100644 --- a/dev-games/crystalspace/crystalspace-2.0-r1.ebuild +++ b/dev-games/crystalspace/crystalspace-2.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -46,7 +46,7 @@ DEPEND="${COMMON_DEP} java? ( >=virtual/jdk-1.5 dev-java/ant-core ) dev-util/ftjam - dev-lang/swig + GetData (); + } ++ ++const void* csImageMemory::GetImageData () ++{ ++ return GetImagePtr (); ++} ++ ++int csImageMemory::GetWidth () const ++{ ++ return Width; ++} ++ ++void csImageBase::SetName (const char* iName) ++{ ++ cs_free (fName); ++ fName = CS::StrDup (iName); ++} ++ + csRGBpixel* csImageMemory::GetPalettePtr () + { + EnsureImage(); +--- include/csgfx/imagebase.h.old 2016-04-17 09:59:09.211101864 +0200 ++++ include/csgfx/imagebase.h 2016-04-17 09:59:20.041919599 +0200 +@@ -61,10 +61,7 @@ + // Most images are 2D, so provide a sensible default + virtual int GetDepth () const { return 1; } + +- virtual void SetName (const char* iName) +- { +- cs_free (fName); fName = CS::StrDup (iName); +- } ++ virtual void SetName (const char* iName); + virtual const char* GetName () const { return fName; } + + /* Commented out: should be implemented by all descendants.