win64: fix sgl
This commit is contained in:
parent
8ccee771f8
commit
45aa84b6ce
|
@ -19,10 +19,14 @@
|
||||||
(define (unavailable name)
|
(define (unavailable name)
|
||||||
(lambda () (lambda x (error name "unavailable on this system"))))
|
(lambda () (lambda x (error name "unavailable on this system"))))
|
||||||
|
|
||||||
|
(define win32?
|
||||||
|
(and (eq? 'windows stype)
|
||||||
|
(equal? "win32\\i386" (path->string (system-library-subpath #f)))))
|
||||||
|
|
||||||
(define-syntax _fun*
|
(define-syntax _fun*
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
[(_fun* x ...)
|
[(_fun* x ...)
|
||||||
(if (eq? 'windows stype) (_fun #:abi 'stdcall x ...) (_fun x ...))]))
|
(if win32? (_fun #:abi 'stdcall x ...) (_fun x ...))]))
|
||||||
|
|
||||||
(define-syntax define-foreign-lib
|
(define-syntax define-foreign-lib
|
||||||
(syntax-rules (->)
|
(syntax-rules (->)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user