comparison src/vamp-sdk/ext/kiss_fft.h @ 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 e979a9c4ffb6
children
comparison
equal deleted inserted replaced
492:fb3e0ca3e700 493:25e023bad200
4 #include <stdlib.h> 4 #include <stdlib.h>
5 #include <stdio.h> 5 #include <stdio.h>
6 #include <math.h> 6 #include <math.h>
7 #include <string.h> 7 #include <string.h>
8 8
9 #ifndef KISSFFT_USE_CPP_LINKAGE
9 #ifdef __cplusplus 10 #ifdef __cplusplus
10 extern "C" { 11 extern "C" {
12 #endif
11 #endif 13 #endif
12 14
13 /* 15 /*
14 ATTENTION! 16 ATTENTION!
15 If you would like a : 17 If you would like a :
115 117
116 /* for real ffts, we need an even size */ 118 /* for real ffts, we need an even size */
117 #define kiss_fftr_next_fast_size_real(n) \ 119 #define kiss_fftr_next_fast_size_real(n) \
118 (kiss_fft_next_fast_size( ((n)+1)>>1)<<1) 120 (kiss_fft_next_fast_size( ((n)+1)>>1)<<1)
119 121
122 #ifndef KISSFFT_USE_CPP_LINKAGE
120 #ifdef __cplusplus 123 #ifdef __cplusplus
121 } 124 }
122 #endif 125 #endif
126 #endif
127
128 #ifdef KISSFFT_USE_CPP_LINKAGE
129 #define KISSFFT_USED_CPP_LINKAGE 1
130 #endif
123 131
124 #endif 132 #endif