Explorar o código

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

Samuel Thibault %!s(int64=12) %!d(string=hai) anos
pai
achega
55e1451a7f
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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