X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Flibraries.lisp;fp=src%2Flibraries.lisp;h=af860c4c5947cdb2d2fe551d93b5654dcfe8d372;hb=87acde9ae931ba8ac7bd486809f6dab3b2448790;hp=3ca10dac05b35b1ba1ad9aed57e61b2aa90f7122;hpb=93c428881fc62a855aeee2dec0aaa2fb4e2566da;p=uffi.git diff --git a/src/libraries.lisp b/src/libraries.lisp index 3ca10da..af860c4 100644 --- a/src/libraries.lisp +++ b/src/libraries.lisp @@ -87,8 +87,11 @@ library type if type is not specified." (probe-file filename))) (if (pathnamep filename) ;; ensure filename is a string to check if already loaded (setq filename (namestring (if (null (pathname-directory filename)) - filename (truename filename))))) - + filename + ;; lispworks treats as UNC, so use truename + #+(and lispworks win32 mswindows) (truename filename) + #-(and lispworks win32 mswindows) filename)))) + (if (and (not force-load) (find filename *loaded-libraries* :test #'string-equal)) t ;; return T, but don't reload library