Skip to content

Commit

Permalink
include FFTW_EXTERN prototypes for wrappers, so that they are properl…
Browse files Browse the repository at this point in the history
…y exported to DLLs on Windows (sigh)

[empty commit message]
  • Loading branch information
stevengj committed Jun 25, 2011
1 parent d2a1f24 commit 35f2781
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mpi/f03-wrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ echo

echo "#include \"fftw3-mpi.h\""
echo "#include \"ifftw-mpi.h\""
echo

# Declare prototypes using FFTW_EXTERN, important for Windows DLLs
grep -v 'mpi.h' fftw3-mpi.h | gcc -E - |grep "fftw_mpi_init" |tr ';' '\n' | grep "MPI_Comm" | perl genf03-wrap.pl | grep "MPI_Fint" | sed 's/^/FFTW_EXTERN /;s/$/;/'

grep -v 'mpi.h' fftw3-mpi.h | gcc -E - |grep "fftw_mpi_init" |tr ';' '\n' | grep "MPI_Comm" | perl genf03-wrap.pl

Expand Down

0 comments on commit 35f2781

Please sign in to comment.