Merge branch 'release-4-5-patches'
[gromacs/adressmacs.git] / cmake / TestFFTW2.c
blobe3367760fe24c771f7b5c505111e4d5b3c07dbf0
1 #ifdef DFFTW
2 #include <dfftw.h>
3 #endif
5 #ifdef SFFTW
6 #include <sfftw.h>
7 #endif
9 #ifdef FFTW
10 #include <fftw.h>
11 #endif
13 int
14 main()
16 #ifdef DOUBLE
17 /* Cause a compile-time error if fftw_real is not double */
18 int _array_ [1 - 2 * !((sizeof(fftw_real)) == sizeof(double))];
19 #else
20 /* Cause a compile-time error if fftw_real is not float */
21 int _array_ [1 - 2 * !((sizeof(fftw_real)) == sizeof(float))];
22 #endif
23 return 0;