avoid C++11 - fixes OSX/PPC builds
authorRobin Gareus <robin@gareus.org>
Sun, 2 Apr 2017 13:23:24 +0000 (15:23 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 2 Apr 2017 13:23:24 +0000 (15:23 +0200)
libs/qm-dsp/base/KaiserWindow.h
libs/qm-dsp/base/SincWindow.h
tools/update_qm-dsp.sh

index f16a4b6c1672c6f48eadd69fddaa37935ed2c9ab..0253d6d4c439eb6f23f4904bc92e23e4ff654914 100644 (file)
@@ -81,7 +81,7 @@ public:
     }
 
     const double *getWindow() const { 
-       return m_window.data();
+       return &m_window[0];
     }
 
     void cut(double *src) const { 
index bb35d90c201ef886e9bb5cf7ba651dffac627b42..02de928679173eaf749eceeab77a999c06702345 100644 (file)
@@ -37,7 +37,7 @@ public:
     }
 
     const double *getWindow() const { 
-       return m_window.data();
+       return &m_window[0];
     }
 
     void cut(double *src) const { 
index 4e2f43ddcf3e1843e88f172c85212b416d1363ff..5b769082da9fe9bc1006b930218a47dd7be73152 100755 (executable)
@@ -69,4 +69,22 @@ index 714d5755d..c88641de7 100644
      {
 EOF
 
+## this applies to qm-vamp-plugins-v1.7.1-20-g4d15479
+## fix OSX 10.5 / PPC builds gcc4.2
+patch -p3 << EOF
+diff --git a/libs/qm-dsp/base/KaiserWindow.h b/libs/qm-dsp/base/KaiserWindow.h
+index f16a4b6c1..0253d6d4c 100644
+--- a/libs/qm-dsp/base/KaiserWindow.h
++++ b/libs/qm-dsp/base/KaiserWindow.h
+@@ -81,7 +81,7 @@ public:
+     }
+     const double *getWindow() const { 
+-      return m_window.data();
++      return &m_window[0];
+     }
+     void cut(double *src) const { 
+EOF
+
 git add gitrev.txt base dsp ext maths