diff src/vamp-sdk/FFTimpl.cpp @ 493:25e023bad200

Choose another method (which should actually work) to override linkage for KissFFT
author Chris Cannam
date Sun, 05 Mar 2017 17:13:18 +0000
parents b409560a805b
children 90571dcc371a
line wrap: on
line diff
--- a/src/vamp-sdk/FFTimpl.cpp	Fri Feb 24 15:46:22 2017 +0000
+++ b/src/vamp-sdk/FFTimpl.cpp	Sun Mar 05 17:13:18 2017 +0000
@@ -2,7 +2,7 @@
 // Override C linkage for KissFFT headers. So long as we have already
 // included all of the other (system etc) headers KissFFT depends on,
 // this should work out OK
-#undef __cplusplus
+#define KISSFFT_USE_CPP_LINKAGE 1
 
 namespace Kiss {
 
@@ -30,3 +30,9 @@
 
 }
 
+// Check that this worked, i.e. that we have our own suitably
+// hacked KissFFT header which set this after making the
+// appropriate change
+#ifndef KISSFFT_USED_CPP_LINKAGE
+#error "KissFFT header lacks specific linkage adjustment needed for Vamp SDK"
+#endif