r10571: avoid multiple evaluation for strings input to macros
[uffi.git] / src / libraries.lisp
index 3ca10dac05b35b1ba1ad9aed57e61b2aa90f7122..af860c4c5947cdb2d2fe551d93b5654dcfe8d372 100644 (file)
@@ -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