mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Don't load msvcrt.dll when built with UCRT.
This commit is contained in:
parent
0be0e832cd
commit
48ab9725ca
|
|
@ -1,2 +1,2 @@
|
|||
(sb-alien:load-shared-object "ws2_32.dll")
|
||||
(sb-alien:load-shared-object "msvcrt.dll")
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,3 @@
|
|||
))
|
||||
(eval-when (:compile-toplevel :load-toplevel :execute)
|
||||
(setf (sb-int:system-package-p (find-package "SB-POSIX")) t))
|
||||
|
||||
#+win32
|
||||
(sb-alien:load-shared-object "msvcrt.dll")
|
||||
|
|
|
|||
|
|
@ -744,8 +744,11 @@ not supported."
|
|||
(defmacro define-stat-call (name arg designator-fun type)
|
||||
;; FIXME: this isn't the documented way of doing this, surely?
|
||||
(let ((lisp-name (lisp-for-c-symbol name))
|
||||
(real-name #+inode64 (format nil "~A$INODE64" name)
|
||||
#-inode64 name))
|
||||
(real-name (or #+inode64
|
||||
(format nil "~A$INODE64" name)
|
||||
#+(and ucrt 64-bit)
|
||||
(format nil "~A64" name)
|
||||
name)))
|
||||
`(progn
|
||||
(export ',lisp-name :sb-posix)
|
||||
(declaim (inline ,lisp-name))
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
#+win32
|
||||
(progn
|
||||
(load-shared-object "kernel32.dll")
|
||||
(load-shared-object "msvcrt.dll")
|
||||
(load-shared-object #+ucrt "ucrtbase.dll" #-ucrt "msvcrt.dll")
|
||||
(load-shared-object "advapi32.dll")
|
||||
(load-shared-object "ws2_32.dll")
|
||||
(load-shared-object "shell32.dll"))
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ featurep() {
|
|||
# It will get added in by Config.*-win32 only if LISP_FEATURE_SB_FUTEX.
|
||||
if [ "$sbcl_os" = win32 ] ; then
|
||||
LOADLIBES=-lSynchronization featurep os-provides-wakebyaddr sb-futex
|
||||
featurep ucrt
|
||||
fi
|
||||
|
||||
featurep os-provides-dlopen
|
||||
|
|
|
|||
10
tools-for-build/ucrt-test.c
Normal file
10
tools-for-build/ucrt-test.c
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include <windows.h>
|
||||
|
||||
int main ()
|
||||
{
|
||||
#ifdef _UCRT
|
||||
return 104;
|
||||
#else
|
||||
return 1;
|
||||
#endif
|
||||
}
|
||||
Loading…
Reference in a new issue