[mixxx] git add mixxx-gcc6.patch

Sérgio M. Basto sergiomb at rpmfusion.org
Thu Jul 14 05:30:23 CEST 2016


commit fe5b57bf23b1082ad8bb74ca6402fb9f3ba57165
Author: Sérgio M. Basto <sergio at serjux.com>
Date:   Thu Jul 14 04:30:08 2016 +0100

    git add mixxx-gcc6.patch

 mixxx-gcc6.patch | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
---
diff --git a/mixxx-gcc6.patch b/mixxx-gcc6.patch
new file mode 100644
index 0000000..f56a548
--- /dev/null
+++ b/mixxx-gcc6.patch
@@ -0,0 +1,17 @@
+--- ./src/util/math.h.orig	2016-07-14 04:13:22.861482580 +0100
++++ ./src/util/math.h	2016-07-14 04:15:36.966067224 +0100
+@@ -4,7 +4,13 @@
+ // Causes MSVC to define M_PI and friends.
+ // http://msdn.microsoft.com/en-us/library/4hwaceh6.aspx
+ #define _USE_MATH_DEFINES
+-#include <cmath>
++#include <math.h>
++#include <cmath> 
++// Note: Because of our fpclassify hack, we actualy need to inlude both, 
++// the c and the c++ version of the math header.  
++// From GCC 6.1.1 math.h depends on cmath, which failes to compile if included 
++// after our fpclassify hack 
++
+ #include <algorithm>
+ 
+ #include "util/assert.h"


More information about the rpmfusion-commits mailing list