From ca8172311d8297ee12c1b50f79dfa8521db4175e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 22 Jun 2020 11:36:52 +0200 Subject: [PATCH] Math: FFS, GCC. --- src/Magnum/Math/Test/Matrix4Test.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Magnum/Math/Test/Matrix4Test.cpp b/src/Magnum/Math/Test/Matrix4Test.cpp index 7a9b726e9..413e9cddc 100644 --- a/src/Magnum/Math/Test/Matrix4Test.cpp +++ b/src/Magnum/Math/Test/Matrix4Test.cpp @@ -834,6 +834,11 @@ void Matrix4Test::uniformScalingPartNotUniform() { namespace { +/* FFS. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60491 */ +#ifdef minor +#undef minor +#endif + /* From https://github.com/graphitemaster/normals_revisited#sample-code */ float minor(const float* m, int r0, int r1, int r2, int c0, int c1, int c2) { return m[4*r0+c0] * (m[4*r1+c1] * m[4*r2+c2] - m[4*r2+c1] * m[4*r1+c2]) -