win64: fix sgl

This commit is contained in:
Matthew Flatt 2011-01-10 17:42:05 -07:00
parent 8ccee771f8
commit 45aa84b6ce

View File

@ -19,10 +19,14 @@
(define (unavailable name)
(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*
(syntax-rules ()
[(_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
(syntax-rules (->)