[Scipy-svn] r4273 - branches/refactor_fft/scipy/fftpack/src

scipy-svn at scipy.org scipy-svn at scipy.org
Sun May 11 11:09:21 EDT 2008


Author: cdavid
Date: 2008-05-11 10:09:15 -0500 (Sun, 11 May 2008)
New Revision: 4273

Modified:
   branches/refactor_fft/scipy/fftpack/src/fftpack.h
Log:
Use C linkage if cpluscplus.

Modified: branches/refactor_fft/scipy/fftpack/src/fftpack.h
===================================================================
--- branches/refactor_fft/scipy/fftpack/src/fftpack.h	2008-05-11 13:32:48 UTC (rev 4272)
+++ branches/refactor_fft/scipy/fftpack/src/fftpack.h	2008-05-11 15:09:15 UTC (rev 4273)
@@ -13,13 +13,17 @@
 typedef struct {double r,i;} complex_double;
 typedef struct {float r,i;} complex_float;
 
+#ifdef __cplusplus
 extern "C" {
+#endif
 void init_convolution_kernel(int n,double* omega, int d, 
 			     double (*kernel_func)(int),
 			     int zero_nyquist);
 void convolve(int n,double* inout,double* omega,int swap_real_imag);
 void convolve_z(int n,double* inout,double* omega_real,double* omega_imag);
+#ifdef __cplusplus
 };
+#endif
 
 extern int ispow2le2e30(int n);
 extern int ispow2le2e13(int n);




More information about the Scipy-svn mailing list