Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
14d97456
Commit
14d97456
authored
May 18, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
May 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegcc: Default to ucrtbase.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
058f8695
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
corecrt.h
include/msvcrt/corecrt.h
+8
-0
makedep.c
tools/makedep.c
+3
-0
winegcc.c
tools/winegcc/winegcc.c
+1
-1
No files found.
include/msvcrt/corecrt.h
View file @
14d97456
...
...
@@ -33,6 +33,14 @@
#define _WIN64
#endif
#ifndef _MSVCR_VER
# define _MSVCR_VER 140
#endif
#if !defined(_UCRT) && _MSVCR_VER >= 140
# define _UCRT
#endif
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(_WIN64) && !defined(__MINGW64__)
# define __int64 long
...
...
tools/makedep.c
View file @
14d97456
...
...
@@ -4337,11 +4337,13 @@ static void load_sources( struct makefile *make )
if
(
make
->
use_msvcrt
)
{
unsigned
int
msvcrt_version
=
0
;
for
(
i
=
0
;
i
<
make
->
imports
.
count
;
i
++
)
{
if
(
strncmp
(
make
->
imports
.
str
[
i
],
"msvcr"
,
5
)
&&
strncmp
(
make
->
imports
.
str
[
i
],
"ucrt"
,
4
))
continue
;
if
(
crt_dll
)
fatal_error
(
"More than one crt DLL imported: %s %s
\n
"
,
crt_dll
,
make
->
imports
.
str
[
i
]
);
crt_dll
=
make
->
imports
.
str
[
i
];
sscanf
(
crt_dll
,
"msvcr%u"
,
&
msvcrt_version
);
}
if
(
!
crt_dll
&&
!
strarray_exists
(
&
make
->
extradllflags
,
"-nodefaultlibs"
))
{
...
...
@@ -4349,6 +4351,7 @@ static void load_sources( struct makefile *make )
strarray_add
(
&
make
->
imports
,
crt_dll
);
}
if
(
crt_dll
&&
!
strncmp
(
crt_dll
,
"ucrt"
,
4
))
strarray_add
(
&
make
->
define_args
,
"-D_UCRT"
);
else
strarray_add
(
&
make
->
define_args
,
strmake
(
"-D_MSVCR_VER=%u"
,
msvcrt_version
));
}
LIST_FOR_EACH_ENTRY
(
file
,
&
make
->
includes
,
struct
incl_file
,
entry
)
parse_file
(
make
,
file
,
0
);
...
...
tools/winegcc/winegcc.c
View file @
14d97456
...
...
@@ -1208,7 +1208,7 @@ static void build(struct options* opts)
add_library
(
opts
,
lib_dirs
,
files
,
"winecrt0"
);
if
(
opts
->
use_msvcrt
)
{
if
(
!
crt_lib
)
add_library
(
opts
,
lib_dirs
,
files
,
"
msvcrt
"
);
if
(
!
crt_lib
)
add_library
(
opts
,
lib_dirs
,
files
,
"
ucrtbase
"
);
else
strarray_add
(
files
,
strmake
(
"-a%s"
,
crt_lib
));
}
if
(
opts
->
win16_app
)
add_library
(
opts
,
lib_dirs
,
files
,
"kernel"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment