]> gitweb.factorcode.org Git - factor.git/commitdiff
fftw.ffi: add another library name; compiles to fftw3.dll by default
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 15 Jan 2023 20:57:42 +0000 (14:57 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 15 Jan 2023 20:57:42 +0000 (14:57 -0600)
extra/fftw/ffi/ffi.factor

index 4f365e68a2ce7e8959fc54a76c3e68f0d474c75a..195aa501cf3dc25a1fc3a1a85f0f7f03920772ae 100644 (file)
@@ -2,14 +2,14 @@
 ! See http://factorcode.org/license.txt for BSD license.
 
 USING: alien alien.c-types alien.destructors alien.libraries
-alien.syntax combinators system ;
+alien.libraries.finder alien.syntax combinators system ;
 
 IN: fftw.ffi
 
 LIBRARY: fftw3
 
 << "fftw3" {
-    { [ os windows? ] [ "libfftw3-3.dll" ] }
+    { [ os windows? ] [ { "fftw3.dll" "libfftw3-3.dll" } find-library-from-list ] }
     { [ os macosx? ] [ "libfftw3.dylib" ] }
     { [ os unix? ] [ "libfftw3.so" ] }
 } cond cdecl add-library >>