use stdcall for windows kernel functions
svn: r11543 original commit: e5686a5577f39ee641093c792c09ede144a78967
This commit is contained in:
parent
901c60532c
commit
f67213751b
|
@ -25,7 +25,7 @@
|
|||
|
||||
(define windows-getcomputername
|
||||
(delay-ffi-obj "GetComputerNameExA" (force kernel32)
|
||||
(_fun _int _bytes _cvector -> _int)))
|
||||
(_fun #:abi 'stdcall _int _bytes _cvector -> _int)))
|
||||
|
||||
(define (gethostname)
|
||||
(case (system-type)
|
||||
|
@ -53,12 +53,11 @@
|
|||
;; getpid
|
||||
|
||||
(define unix-getpid
|
||||
(delay-ffi-obj "getpid" #f
|
||||
(_fun -> _int)))
|
||||
(delay-ffi-obj "getpid" #f (_fun -> _int)))
|
||||
|
||||
(define windows-getpid
|
||||
(delay-ffi-obj "GetCurrentProcessId" (force kernel32)
|
||||
(_fun -> _int)))
|
||||
(delay-ffi-obj "GetCurrentProcessId" (force kernel32)
|
||||
(_fun #:abi 'stdcall -> _int)))
|
||||
|
||||
(define (getpid)
|
||||
(case (system-type)
|
||||
|
|
Loading…
Reference in New Issue
Block a user