diff options
author | David Seifert <soap@gentoo.org> | 2021-05-22 00:06:23 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2021-05-22 00:06:23 +0200 |
commit | 7c5b7e17bd7487c699cefc72339a7061f737ae81 (patch) | |
tree | 8e4f109fae8fdd8d0dc91391383cfc93aaef65d3 /games-emulation/snes9x/files | |
parent | dev-python/semantic_version: Fix HOMEPAGE (diff) | |
download | gentoo-7c5b7e17bd7487c699cefc72339a7061f737ae81.tar.gz gentoo-7c5b7e17bd7487c699cefc72339a7061f737ae81.tar.bz2 gentoo-7c5b7e17bd7487c699cefc72339a7061f737ae81.zip |
games-emulation/snes9x: Fix building against GCC 11
Closes: https://bugs.gentoo.org/789963
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'games-emulation/snes9x/files')
-rw-r--r-- | games-emulation/snes9x/files/snes9x-1.60-gcc11.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/games-emulation/snes9x/files/snes9x-1.60-gcc11.patch b/games-emulation/snes9x/files/snes9x-1.60-gcc11.patch new file mode 100644 index 000000000000..1b9a70b7f091 --- /dev/null +++ b/games-emulation/snes9x/files/snes9x-1.60-gcc11.patch @@ -0,0 +1,31 @@ +--- a/conffile.cpp ++++ b/conffile.cpp +@@ -452,7 +452,7 @@ + } + } + +-bool ConfigFile::ConfigEntry::section_then_key_less::operator()(const ConfigEntry &a, const ConfigEntry &b) { ++bool ConfigFile::ConfigEntry::section_then_key_less::operator()(const ConfigEntry &a, const ConfigEntry &b) const { + if(curConfigFile && a.section!=b.section){ + const int sva = curConfigFile->GetSectionSize(a.section); + const int svb = curConfigFile->GetSectionSize(b.section); +--- a/conffile.h ++++ b/conffile.h +@@ -90,7 +90,7 @@ + mutable bool used; + + struct section_then_key_less { +- bool operator()(const ConfigEntry &a, const ConfigEntry &b); ++ bool operator()(const ConfigEntry &a, const ConfigEntry &b) const; + }; + + struct key_less { +@@ -101,7 +101,7 @@ + }; + + struct line_less { +- bool operator()(const ConfigEntry &a, const ConfigEntry &b){ ++ bool operator()(const ConfigEntry &a, const ConfigEntry &b) const { + if(a.line==b.line) return (b.val.empty() && !a.val.empty()) || a.key<b.key; + if(b.line<0) return true; + if(a.line<0) return false; |