summaryrefslogtreecommitdiffstats
path: root/libraries/libclaw/patches/03_libclaw-1.7.4-gcc7.patch
diff options
context:
space:
mode:
author Matteo Bernardini2019-04-20 20:10:07 +0200
committer Matteo Bernardini2019-04-20 20:10:07 +0200
commit4aa3bdbdb45235aefbb8760b054fe85c4dd34e26 (patch)
treecea7a5d09c01650a9bc1756be62de1b44a249093 /libraries/libclaw/patches/03_libclaw-1.7.4-gcc7.patch
parentfd5a9ea5097bc1dcbece1263d54364dde06a588f (diff)
downloadslackbuilds-4aa3bdbdb45235aefbb8760b054fe85c4dd34e26.tar.gz
20190420.1 global branch merge.current-20190420.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/libclaw/patches/03_libclaw-1.7.4-gcc7.patch')
-rw-r--r--libraries/libclaw/patches/03_libclaw-1.7.4-gcc7.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/libraries/libclaw/patches/03_libclaw-1.7.4-gcc7.patch b/libraries/libclaw/patches/03_libclaw-1.7.4-gcc7.patch
new file mode 100644
index 0000000000..dd89e3e256
--- /dev/null
+++ b/libraries/libclaw/patches/03_libclaw-1.7.4-gcc7.patch
@@ -0,0 +1,36 @@
+Patch taken from upstream and edited for use in Fedora:
+
+commit 6033275773313fe052f6e222321a8ec87587fbe6
+Author: Julien Jorge <julien.jorge@iscool-e.com>
+Date: Thu Apr 24 20:39:18 2014 +0200
+
+ Fix various errors pointed by clang on iOS.
+
+diff --git a/claw/impl/box_2d.tpp b/claw/impl/box_2d.tpp
+index e4b6936..71f3883 100644
+--- a/claw/impl/box_2d.tpp
++++ b/claw/impl/box_2d.tpp
+@@ -136,8 +136,8 @@ template<typename U>
+ claw::math::box_2d<U> claw::math::box_2d<T>::cast_value_type_to() const
+ {
+ return claw::math::box_2d<U>
+- ( first_point.cast_value_type_to<U>(),
+- second_point.cast_value_type_to<U>() );
++ ( first_point.template cast_value_type_to<U>(),
++ second_point.template cast_value_type_to<U>() );
+ } // box_2d::cast_value_type_to()
+
+ /*----------------------------------------------------------------------------*/
+diff --git a/claw/impl/rectangle.tpp b/claw/impl/rectangle.tpp
+index 9e6f14a..3c3c8f3 100644
+--- a/claw/impl/rectangle.tpp
++++ b/claw/impl/rectangle.tpp
+@@ -140,7 +140,7 @@ template<typename U>
+ claw::math::rectangle<U> claw::math::rectangle<T>::cast_value_type_to() const
+ {
+ return claw::math::rectangle<U>
+- ( position.cast_value_type_to<U>(), (U)width, (U)height );
++ ( position.template cast_value_type_to<U>(), (U)width, (U)height );
+ } // rectangle::cast_value_type_to()
+
+ /*----------------------------------------------------------------------------*/