Commit Graph

6347 Commits

Author SHA1 Message Date
Biswapriyo Nath
3cf799a0a4 headers: Import fontsub.h from wine
Required for google/skia project

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-24 13:50:35 +08:00
LIU Hao
6cc97775a2 crt: Regenerate Makefile.in
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-07 22:35:05 +08:00
Biswapriyo Nath
f8aed76f34 crt: Add bits GUID library
Required for python-pywin32 project

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-07 22:35:05 +08:00
LIU Hao
c80b99123d headers: Update to Wine master
'include/windows.foundation.collections.idl' contains an error at the
moment, so I have restored it by hand.

Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-07 22:35:02 +08:00
Biswapriyo Nath
f5bd1f3a5a headers: Import bits IDL files from wine
Required for python-pywin32 project

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-07 22:21:09 +08:00
Jonathan Yong
7689dd68aa mingw-w64-headers: regenerate Makefile.in
Signed-off-by: Jonathan Yong <10walls@gmail.com>
2021-11-04 23:26:30 +00:00
Jacek Caban
578aafddc4 winuser.h: Add PW_RENDERFULLCONTENT define.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-01 23:19:20 +08:00
Jacek Caban
978afe0d15 ksuser: Add KSCATEGORY_VIDEO_CAMERA declaration.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-01 23:18:45 +08:00
LIU Hao
4f35b21808 crt: Regenerate Makefile.in
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-01 23:18:22 +08:00
Jacek Caban
0fbc918f95 crt: Include windowscodecs.c in libuuid.a.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-11-01 23:17:47 +08:00
LIU Hao
0f24d21a67 headers: Update to wine master
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-28 21:51:05 +08:00
Biswapriyo Nath
572d27c819 headers: Import evr9.idl from Wine
Required for qt6-multimedia WMF plugin

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-28 21:48:52 +08:00
Biswapriyo Nath
c2df52806c headers: Import wmsecure.idl from wine
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-28 21:47:07 +08:00
LIU Hao
a2eb3ea3aa headers: Update to wine master
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-27 22:56:37 +08:00
Biswapriyo Nath
ff066df395 headers: Import wmsecure.idl from wine
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-27 22:47:56 +08:00
LIU Hao
403c83ce18 headers/mfidl: Regenerate .H from .IDL
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-27 22:45:04 +08:00
Biswapriyo Nath
cb05e10f46 headers: Add some interfaces in mfidl.idl
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-27 22:43:12 +08:00
Jeremy Drake
5e7b53ab3c crt: duplicate query.def in ntquery.def
The attempt to use ntquery.def.in to #include query.def didn't work
correctly for lib32.  For consistency, duplicate the version in
lib-common too.

Signed-off-by: Jeremy Drake <jeremyd2019@users.sourceforge.net>
Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-23 23:01:08 +03:00
Martin Storsjö
10d6d4e845 crt: Regenerate Makefile.in
Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-22 13:53:55 +03:00
Jeremy Drake
f33e6affb0 crt: add libntquery.a import library
There was a version already present as libquery.a for a couple of
arches, but the Windows SDK provides identical libquery.a and
libntquery.a, and the DLL on Windows 10 20H2 and 21H1 has much
fewer exports than the pre-existing def file.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-22 13:52:22 +03:00
LIU Hao
f29c1101f8 headers/mfidl: Regenerate H from IDL
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-21 22:04:22 +08:00
Biswapriyo Nath
7c5d85dc40 headers: Add missing WINAPI attribute in mfidl.idl
This fixes qt6-multimedia build in i686 mingw

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-21 22:03:35 +08:00
Jeremy Drake
5b6540650d adsiid: add missing GUIDs
Obtained from program that printed them out, linked to Windows SDK, and
then merging the output with the existing file.  A few of the GUIDs in
ADSIid.h were undefined in ADSIid.Lib:

IID_IADsSchema
IID_IDirectoryAttrMgmt
IID_IDSAttrMgmt
IID_IDSObject
IID_IDSSearch

Signed-off-by: Jeremy Drake <jeremyd2019@users.sourceforge.net>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-21 22:01:23 +08:00
Martin Storsjö
62adda80b8 crt: Regenerate Makefile.in
Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-18 14:32:27 +03:00
Martin Storsjö
54bbe83dfe crt: Split out the strtold/wcstold frontend aliases to separate object files
This avoids linker conflicts if object files refer to both 'strtold'
or 'wcstold' and include them from libucrt*.a before other object
files pull in the __mingw_* counterparts.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-18 14:32:23 +03:00
Biswapriyo Nath
da8fd9c538 crt: Add APIs in ntdll.def
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-17 22:34:54 +08:00
Biswapriyo Nath
833f0399ba headers: Add NTDDI_WIN10_CO in sdkddkver.h
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-16 23:07:09 +08:00
Biswapriyo Nath
c662c9c0b5 headers: Add ioringapi.h
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-16 23:07:09 +08:00
LIU Hao
fcb5a4eaa1 headers/mfidl: Regenerate from IDL
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-15 23:46:12 +08:00
Biswapriyo Nath
47a9f0deb3 headers: Add some names in mstcpip.h
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-14 23:32:05 +08:00
Michel Zou
d4c9e9ffc1 headers: Add MFTranscodeContainerType guids
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-14 23:31:16 +08:00
Mark Harmstone
acdc7adc9c include/wdm.h: Update IO_STACK_LOCATION struct.
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-08 23:24:05 +08:00
Mark Harmstone
0931ac57f5 headers: Add ata.h
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-08 23:24:05 +08:00
Martin Storsjö
ca35236d97 crt: Check pseudo relocations for overflows and error out clearly
Normally, when correctly configured, the pseudo relocations should
be in fields that are large enough to hold the full target
offset/address. But if the relocations nevertheless end up truncated,
error out clearly instead of running into a hard to diagnose crash
at runtime.

The pseudo relocations can be applied both on absolute pointers and
relative offsets, so when writing a N bit number, we don't know if
the limits for it are unsigned or signed. Thus carefully allow
values from -(2^(N-1)) to (2^N)-1, covering the full range for both
signed and unsigned N bit numbers. This won't catch all cases where
offsets are out of bounds, but should catch the vast majority, allowing
a clearer error message in those situations.

By default, GCC builds for x86_64 with the medium code model, which
adds .refptr stubs when referencing addresses that might end up
autoimported (i.e. when referencing addresses that can be out of range
for a 32 bit offset). Some users, who don't expect to be autoimporting
any data symbols, might be building with -mcmodel=small [1], which
avoids this extra indirection - but which then silently breaks things
if actually ending up autoimporting data symbols from another DLL.

This can also happen if calling a function which is marked "DATA" in
the def files as it's not meant to be called/used normally (because we
provide a replacement in libmingwex or lib*crt* that we think should
be used instead). If the function that is meant to be called is missing
(this can happen in misconfigured builds where the libraries are lacking
symbols that we expect to provide, see [2]), the linker can end up doing
an autoimport of the function into a 32 bit RIP-relative offset.
(This only happens with Clang; GCC creates a .refptr stub for the
function in these cases, while Clang expects such stubs not to be needed
for functions, only for data.)

[1] 8f7af99687
[2] https://github.com/ziglang/zig/issues/9845

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-08 18:16:27 +03:00
Biswapriyo Nath
67851d735d headers: Add APIs in computenetwork.h
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-08 23:07:21 +08:00
Biswapriyo Nath
7de75a9be0 crt: Add APIs in computenetwork.def
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-08 23:07:20 +08:00
davjam
66ba5f3221 fix atanh,f,l for bug #515
atanh(-0) now gives -0.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-08 12:39:51 +03:00
davjam
021dffb8a4 Fixes asinh,f,l for bugs #515 and #916
ie. fix sign of asinh(-0) and ensure results returned for large values.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-10-08 12:39:28 +03:00
Biswapriyo Nath
cb32954b9d headers: Add nvme.h
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-02 16:45:24 +08:00
Biswapriyo Nath
faaf6d3773 headers: Add new names in winioctl.h
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-02 16:45:24 +08:00
Biswapriyo Nath
c216ecd7db crt: Add missing exports in lib32/authz.def
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-10-02 16:45:23 +08:00
LIU Hao
586baa17bb Revert "dcomp.h: add some missing interfaces"
This reverts commit c0433aaf17.
2021-09-21 21:29:58 +08:00
Biswapriyo Nath
564d877131 headers: Add GetHostNameW in winsock2.h
This fixes build failure of libuv in x86.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-09-21 21:24:31 +08:00
Steve Lhomme
c0433aaf17 dcomp.h: add some missing interfaces
* IDCompositionFilterEffect: https://docs.microsoft.com/en-us/windows/win32/api/dcomp/nn-dcomp-idcompositionfiltereffect
* IDCompositionSaturationEffect: https://docs.microsoft.com/en-us/windows/win32/api/dcomp/nn-dcomp-idcompositionsaturationeffect
* IDCompositionGaussianBlurEffect: https://docs.microsoft.com/en-us/windows/win32/api/dcomp/nn-dcomp-idcompositiongaussianblureffect
* IDCompositionDevice3: https://docs.microsoft.com/en-us/windows/win32/api/dcomp/nn-dcomp-idcompositiondevice3

The order of methods can be found from
https://github.com/terrafx/terrafx.interop.windows/tree/main/sources/Interop/Windows/um/dcomp

As for other IDCompositionEffect interfaces, some methods are inverted for MSVC
compilation in C++.

Co-authored-by: Prince Gupta <guptaprince8832@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-09-17 23:44:44 +08:00
Martin Storsjö
2938ef6595 crt: Fix conversion of denormals from 64 bit doubles to 80 bit form
A number that is denormal in 64 bit form will become a normal floating
point value in 80 bit form.

Also clarify the role of one variable while touching this code.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-09-13 12:53:07 +03:00
Patrick Northon
6aa9457f07 Change formatting of double precision floating-points in hexadecimal to match glibc.
- Add new code path for doubles.
- Format long double as double if their size is the same.

Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
Signed-off-by: Martin Storsjö <martin@martin.st>
2021-09-13 09:14:04 +03:00
Patrick Northon
a3978b0130 crt: Fix exponent when formatting long double in hexadecimal.
Some denormalized values were emited incorrectly. The leading digit
will always assume to start at the 4th bit from the highest order bit
in the mantissa and the exponent will be adjusted accordingly.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-09-10 12:31:01 +03:00
Martin Storsjö
10e1449274 crt: Expand mixed tabs/space indentation in mingw_pformat.c to plain spaces
This makes it easier to edit the file across varying editors etc.

Signed-off-by: Martin Storsjö <martin@martin.st>
2021-09-06 13:51:01 +03:00
Patrick Northon
01def06381 Fix hexadecimal formatting of long doubles.
- Fix wrong exponent was set for denormalized long doubles.
- Remove normalization in 2 places to match glibc's behavior. Also fix
another problem, an infinite loop when formatting a zero with a fixed
precision.
- Drop a whole digit when overflowing, again, to match glibc's behavior.

Signed-off-by: Patrick Northon <northon_patrick3@yahoo.ca>
Signed-off-by: Martin Storsjö <martin@martin.st>
2021-08-31 22:59:22 +03:00
Biswapriyo Nath
73c6727676 headers: Add headers for host compute system APIs
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: LIU Hao <lh_mouse@126.com>
2021-08-29 17:25:39 +08:00