瀏覽代碼

Avoid c++ deprecating complex.h warning while compiling the cuda version

Samuel Thibault 12 年之前
父節點
當前提交
55e1451a7f
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      starpufft/starpufft-double.h
  2. 1 1
      starpufft/starpufft-float.h

+ 1 - 1
starpufft/starpufft-double.h

@@ -15,10 +15,10 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <complex.h>
 #include <starpu_config.h>
 
 #if defined(STARPU_HAVE_FFTW) && !defined(__CUDACC__) 
+#include <complex.h>
 #include <fftw3.h>
 #endif
 

+ 1 - 1
starpufft/starpufft-float.h

@@ -15,10 +15,10 @@
  * See the GNU Lesser General Public License in COPYING.LGPL for more details.
  */
 
-#include <complex.h>
 #include <starpu_config.h>
 
 #if defined(STARPU_HAVE_FFTW) && !defined(__CUDACC__) 
+#include <complex.h>
 #include <fftw3.h>
 #endif