forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-games/irrlicht: Fix C++17 does not allow register storage class
* also update EAPI 7 -> 8 Closes: gentoo#33236 Closes: https://bugs.gentoo.org/894764 Signed-off-by: Brahmajit Das <[email protected]> Signed-off-by: David Seifert <[email protected]>
- Loading branch information
1 parent
631c51d
commit c0b729c
Showing
2 changed files
with
49 additions
and
16 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
dev-games/irrlicht/files/irrlicht-1.8.4-drop-register.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Bug: https://bugs.gentoo.org/894764 | ||
|
||
--- a/source/Irrlicht/CColorConverter.cpp | ||
+++ b/source/Irrlicht/CColorConverter.cpp | ||
@@ -165,7 +165,7 @@ | ||
out += lineWidth * height; | ||
|
||
u32 x; | ||
- register u32 c; | ||
+ u32 c; | ||
for (u32 y=0; y < (u32) height; ++y) | ||
{ | ||
if (flip) | ||
--- a/source/Irrlicht/CMY3DHelper.h | ||
+++ b/source/Irrlicht/CMY3DHelper.h | ||
@@ -269,7 +269,7 @@ | ||
unsigned char *out_buf, int out_buf_size) | ||
{ | ||
// we start out with 3 repeating bytes | ||
- register int len = 3; | ||
+ int len = 3; | ||
|
||
unsigned char ch; | ||
|
||
@@ -328,7 +328,7 @@ | ||
//----------------------------------------------------------- | ||
void flush_outbuf(unsigned char *out_buf, int out_buf_size) | ||
{ | ||
- register int pos=0; | ||
+ int pos=0; | ||
|
||
if(!outbuf_cnt) | ||
return; // nothing to do */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters