Mercurial > hg > vamp-plugin-sdk
comparison 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 |
comparison
equal
deleted
inserted
replaced
492:fb3e0ca3e700 | 493:25e023bad200 |
---|---|
1 | 1 |
2 // Override C linkage for KissFFT headers. So long as we have already | 2 // Override C linkage for KissFFT headers. So long as we have already |
3 // included all of the other (system etc) headers KissFFT depends on, | 3 // included all of the other (system etc) headers KissFFT depends on, |
4 // this should work out OK | 4 // this should work out OK |
5 #undef __cplusplus | 5 #define KISSFFT_USE_CPP_LINKAGE 1 |
6 | 6 |
7 namespace Kiss { | 7 namespace Kiss { |
8 | 8 |
9 #undef KISS_FFT_H | 9 #undef KISS_FFT_H |
10 #undef KISS_FTR_H | 10 #undef KISS_FTR_H |
28 | 28 |
29 #undef kiss_fft_scalar // leaving only the namespaced typedef | 29 #undef kiss_fft_scalar // leaving only the namespaced typedef |
30 | 30 |
31 } | 31 } |
32 | 32 |
33 // Check that this worked, i.e. that we have our own suitably | |
34 // hacked KissFFT header which set this after making the | |
35 // appropriate change | |
36 #ifndef KISSFFT_USED_CPP_LINKAGE | |
37 #error "KissFFT header lacks specific linkage adjustment needed for Vamp SDK" | |
38 #endif |