mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
games-puzzle/toppler: Fix C++17 does not allow register storage class
Closes: https://bugs.gentoo.org/896006 Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Signed-off-by: Brahmajit Das <listout@listout.xyz> Part-of: https://github.com/gentoo/gentoo/pull/33161 Closes: https://github.com/gentoo/gentoo/pull/33161 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
Bug: https://bugs.gentoo.org/896006
|
||||
--- a/main.cc
|
||||
+++ b/main.cc
|
||||
@@ -36,6 +36,7 @@
|
||||
#include <libintl.h>
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
+#include <locale.h>
|
||||
#endif
|
||||
|
||||
static void printhelp(void) {
|
||||
--- a/keyb.cc
|
||||
+++ b/keyb.cc
|
||||
@@ -215,7 +215,7 @@ void key_keydatas(SDLKey &sdlkey, ttkey &tkey, char &ch) {
|
||||
|
||||
|
||||
SDLKey key_conv2sdlkey(ttkey k, bool game) {
|
||||
- register int i;
|
||||
+ int i;
|
||||
|
||||
if (game) {
|
||||
for (i = SIZE(ttkeyconv) - 1; i >= 0; i--)
|
||||
@@ -231,7 +231,7 @@ SDLKey key_conv2sdlkey(ttkey k, bool game) {
|
||||
}
|
||||
|
||||
ttkey key_sdlkey2conv(SDLKey k, bool game) {
|
||||
- register int i;
|
||||
+ int i;
|
||||
|
||||
if (k != SDLK_UNKNOWN) {
|
||||
if (game) {
|
||||
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
@@ -7,7 +7,7 @@ inherit autotools
|
||||
|
||||
DESCRIPTION="Reimplementation of Nebulous using SDL"
|
||||
HOMEPAGE="https://gitlab.com/roever/toppler/"
|
||||
SRC_URI="https://downloads.sourceforge.net/toppler/${P}.tar.gz"
|
||||
SRC_URI="https://downloads.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2+"
|
||||
SLOT="0"
|
||||
@@ -26,6 +26,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${P}-gentoo.patch
|
||||
"${FILESDIR}"/${P}-fix-docdir.patch
|
||||
"${FILESDIR}"/${P}-use-gamestat-group.patch
|
||||
"${FILESDIR}"/${P}-drop-register-keyword.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user