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
|
(define windows-getcomputername
|
||||||
(delay-ffi-obj "GetComputerNameExA" (force kernel32)
|
(delay-ffi-obj "GetComputerNameExA" (force kernel32)
|
||||||
(_fun _int _bytes _cvector -> _int)))
|
(_fun #:abi 'stdcall _int _bytes _cvector -> _int)))
|
||||||
|
|
||||||
(define (gethostname)
|
(define (gethostname)
|
||||||
(case (system-type)
|
(case (system-type)
|
||||||
|
@ -53,12 +53,11 @@
|
||||||
;; getpid
|
;; getpid
|
||||||
|
|
||||||
(define unix-getpid
|
(define unix-getpid
|
||||||
(delay-ffi-obj "getpid" #f
|
(delay-ffi-obj "getpid" #f (_fun -> _int)))
|
||||||
(_fun -> _int)))
|
|
||||||
|
|
||||||
(define windows-getpid
|
(define windows-getpid
|
||||||
(delay-ffi-obj "GetCurrentProcessId" (force kernel32)
|
(delay-ffi-obj "GetCurrentProcessId" (force kernel32)
|
||||||
(_fun -> _int)))
|
(_fun #:abi 'stdcall -> _int)))
|
||||||
|
|
||||||
(define (getpid)
|
(define (getpid)
|
||||||
(case (system-type)
|
(case (system-type)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user