Sagittarius and Racket to pffi-define-library

This commit is contained in:
2025-03-22 18:50:20 +02:00
parent 993588e286
commit 2ff726127c
3 changed files with 34 additions and 34 deletions
+21 -9
View File
@@ -403,23 +403,35 @@
(print-header 'pffi-define-library)
(pffi-define-library libc-stdlib
(list "stdlib.h")
(cond-expand (windows "ucrtbase") (else "c"))
'((additional-versions . ("0" "6"))))
(cond-expand
(windows (pffi-define-library libc-stdlib
(list "stdlib.h")
"ucrtbase"
'((additional-versions ("0" "6")))
))
(else (pffi-define-library libc-stdlib
(list "stdlib.h")
"c"
'((additional-versions ("0" "6"))))))
(debug libc-stdlib)
(pffi-define-library libc-stdio
(list "stdio.h")
(cond-expand (windows "ucrtbase") (else "c"))
'((additional-versions . ("0" "6"))))
(cond-expand
(windows (pffi-define-library libc-stdio
(list "stdio.h")
"ucrtbase"
'((additional-versions ("0" "6")))))
(else (pffi-define-library libc-stdio
(list "stdio.h")
"c"
'((additional-versions ("0" "6"))))))
(debug libc-stdio)
(pffi-define-library c-testlib
(list "libtest.h")
"test"
'((additional-paths . ("."))))
'((additional-paths ("." "./tests"))))
(debug c-testlib)