mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Revert "Fix 'absolute-file-name?' and others for cross-build to MinGW."
This reverts commit 0deacfe06e3c9ce848253cb23fcc77a28145d2f8.
This commit is contained in:
parent
ec27a4d7d3
commit
c6cdd92022
1 changed files with 1 additions and 13 deletions
|
@ -2060,16 +2060,6 @@ non-locally, that exit determines the continuation."
|
||||||
;;; {Load Paths}
|
;;; {Load Paths}
|
||||||
;;;
|
;;;
|
||||||
|
|
||||||
(eval-when (eval)
|
|
||||||
(define (compile-time-file-name-convention)
|
|
||||||
(let ((target ((@ (system base target) target-type))))
|
|
||||||
(cond ((equal? target %host-type)
|
|
||||||
(system-file-name-convention))
|
|
||||||
((string-contains-ci target "mingw")
|
|
||||||
'windows)
|
|
||||||
(else
|
|
||||||
'posix)))))
|
|
||||||
|
|
||||||
(let-syntax ((compile-time-case
|
(let-syntax ((compile-time-case
|
||||||
(lambda (stx)
|
(lambda (stx)
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
|
@ -2087,9 +2077,7 @@ non-locally, that exit determines the continuation."
|
||||||
#'(begin form ...)
|
#'(begin form ...)
|
||||||
(next-clause #'(clauses ...))))))))))))
|
(next-clause #'(clauses ...))))))))))))
|
||||||
;; emacs: (put 'compile-time-case 'scheme-indent-function 1)
|
;; emacs: (put 'compile-time-case 'scheme-indent-function 1)
|
||||||
(compile-time-case (or (and (defined? 'compile-time-file-name-convention)
|
(compile-time-case (system-file-name-convention)
|
||||||
(compile-time-file-name-convention))
|
|
||||||
'posix)
|
|
||||||
((posix)
|
((posix)
|
||||||
(define (file-name-separator? c)
|
(define (file-name-separator? c)
|
||||||
(char=? c #\/))
|
(char=? c #\/))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue