From 8193dc28915384ced383d81b3bbcaa8a2681afa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Lindqvist?= Date: Wed, 25 Sep 2013 11:25:42 +0200 Subject: [PATCH] pcre: load dll on windows --- basis/pcre/ffi/ffi.factor | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/basis/pcre/ffi/ffi.factor b/basis/pcre/ffi/ffi.factor index 020e88c894..6a31888b3d 100644 --- a/basis/pcre/ffi/ffi.factor +++ b/basis/pcre/ffi/ffi.factor @@ -5,9 +5,14 @@ USING: system ; IN: pcre.ffi -<< { - { [ os unix? ] [ "libpcre" "libpcre.so" cdecl add-library ] } -} cond >> +! http://sourceforge.net/projects/gnuwin32/files/pcre/7.0/pcre-7.0-bin.zip/download + +<< "pcre" { + { [ os unix? ] [ "libpcre.so" ] } + { [ os windows? ] [ "pcre3.dll" ] } +} cond cdecl add-library >> + +LIBRARY: pcre CONSTANT: PCRE_CASELESS 0x00000001 CONSTANT: PCRE_MULTILINE 0x00000002