mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
media-libs/coin: Now it can be build with gcc7
Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
@@ -46,6 +46,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${P}-gcc-4.7.patch
|
||||
"${FILESDIR}"/${P}-freetype251.patch
|
||||
"${FILESDIR}"/${P}-memhandler-initialization.patch
|
||||
"${FILESDIR}"/${P}-gcc-7.patch
|
||||
)
|
||||
|
||||
DOCS=(
|
||||
|
||||
21
media-libs/coin/files/coin-3.1.3-gcc-7.patch
Normal file
21
media-libs/coin/files/coin-3.1.3-gcc-7.patch
Normal file
@@ -0,0 +1,21 @@
|
||||
diff -urN Coin-3.1.3.orig/src/3ds/SoStream.cpp Coin-3.1.3/src/3ds/SoStream.cpp
|
||||
--- Coin-3.1.3.orig/src/3ds/SoStream.cpp 2010-03-02 16:20:09.000000000 +0300
|
||||
+++ Coin-3.1.3/src/3ds/SoStream.cpp 2017-07-23 15:04:43.808204691 +0300
|
||||
@@ -176,7 +176,7 @@
|
||||
if (!gotNum) { setBadBit(); return FALSE; } \
|
||||
\
|
||||
char *ce; \
|
||||
- s = '\0'; \
|
||||
+ s = NULL; \
|
||||
_convertType_ tempVal = _convertFunc_(buf, &ce, 0); \
|
||||
\
|
||||
if (ce != s) \
|
||||
@@ -273,7 +273,7 @@
|
||||
gotAll: \
|
||||
\
|
||||
char *ce; \
|
||||
- s = '\0'; \
|
||||
+ s = NULL; \
|
||||
double tempVal = _convertFunc_(buf, &ce); \
|
||||
\
|
||||
if (ce != s) \
|
||||
Reference in New Issue
Block a user