]> code.delx.au - gnu-emacs/blobdiff - lisp/cedet/semantic/bovine/gcc.el
Fix minor issues with CEDET on MS-Windows
[gnu-emacs] / lisp / cedet / semantic / bovine / gcc.el
index 19d149112c6423ba11155e7f70c315442a6fb376..b186e7bd6ee737c331005acd5797ed729f68ff93 100644 (file)
@@ -86,13 +86,11 @@ to give to the program."
           (let ((chars (append line nil)))
             (when (= 32 (nth 0 chars))
               (let ((path (substring line 1)))
-                (when (file-accessible-directory-p path)
-                  (when (if (memq system-type '(windows-nt))
-                            (/= ?/ (nth 1 chars))
-                          (= ?/ (nth 1 chars)))
-                    (add-to-list 'inc-path
-                                 (expand-file-name (substring line 1))
-                                 t)))))))))
+                (when (and (file-accessible-directory-p path)
+                           (file-name-absolute-p path))
+                  (add-to-list 'inc-path
+                               (expand-file-name path)
+                               t))))))))
     inc-path))