--- /dev/null
+--- pouetchess_src_0.2.0/src/sxmlgui/MathUtils.h.old 2006-05-26 21:22:57.000000000 -0400
++++ pouetchess_src_0.2.0/src/sxmlgui/MathUtils.h 2017-03-21 18:01:15.569181229 -0400
+@@ -27,10 +27,13 @@
+ return (x < min) ? min : (x > max) ? max : x;\r
+ }\r
+ \r
++// Not used anywhere and conflicts with C++11 std::round(float)\r
++#if __cplusplus < 201103L\r
+ inline int round(float f)\r
+ {\r
+ return int(f + 0.5f);\r
+ }\r
++#endif\r
+ \r
+ inline float getNextRandom(){\r
+ return (float)rand()/(RAND_MAX + 1);\r
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
"${FILESDIR}/${P}-sconstruct-sandbox.patch" \
"${FILESDIR}/${P}-nvidia_glext.patch" \
"${FILESDIR}/${P}-segfaults.patch" \
- "${FILESDIR}/${P}-gcc43.patch"
+ "${FILESDIR}/${P}-gcc43.patch" \
+ "${FILESDIR}/${P}-gcc6-cmath.patch"
# Fix for LibSDL >= 1.2.10 detection
sed -i \
-e "s:sdlver.split('.') >= \['1','2','8'\]:sdlver.split('.') >= [1,2,8]:" \