Commit Graph

6096 Commits

Author SHA1 Message Date
Biswapriyo Nath
a0fc560390 crt: Move mfplay export library to lib-common.
Comment out DLL initialization symbols.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2021-01-05 23:02:03 +08:00
Biswapriyo Nath
b7adfcc0fc crt: Move mfcore export library to lib-common.
Comment out DLL initialization symbols.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2021-01-05 23:02:01 +08:00
Biswapriyo Nath
1f56b42e08 crt: Update mfplat export library.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2021-01-05 23:01:58 +08:00
Biswapriyo Nath
08acf43775 crt: Update mf export library.
Comment out DLL initialization symbols.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2021-01-05 23:01:54 +08:00
Biswapriyo Nath
0c7108c439 headers: Move IP_MREQ from _ip_mreq1.h to ws2ipdef.h.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
2021-01-05 00:17:28 +00:00
Biswapriyo Nath
e30bff42ea headers: Move IPv4/v6 options to ws2ipdef.h from ws2tcpip.h.
Also add missing new ones.
Required for OpenRGB https://gitlab.com/CalcProgrammer1/OpenRGB.git

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
2021-01-05 00:16:07 +00:00
Jacek Caban
ad98746ace widl: Update to current Wine version. 2020-12-25 14:20:15 +01:00
Liu Hao
487bb440dd include/strmif: Regenerate from IDL
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-23 22:37:30 +08:00
Biswapriyo Nath
0273e5f2cc headers: Move some interfaces declaration to axextend.idl from strmif.idl.
This helps to generate proper header files instead of using manual cpp_quote.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-23 21:49:18 +08:00
Biswapriyo Nath
21bda753f1 headers: Add more stub macos in sal.h.
Required for assimp https://github.com/assimp/assimp.git

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-22 21:49:36 +08:00
Biswapriyo Nath
58a54256db headers: Add CompareObjectHandles in handleapi.h
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-22 14:08:45 +08:00
Biswapriyo Nath
7af31efbf2 headers: Add more error codes in mferror.h.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-21 22:02:09 +08:00
Biswapriyo Nath
1dd73eee97 headers: Add mmddk.h file.
Required for libdshowcapture https://github.com/obsproject/libdshowcapture.git

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-21 21:59:27 +08:00
Biswapriyo Nath
807fb5fc07 headers: Import mfreadwrite.idl from Wine.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-20 12:11:02 +01:00
Liu Hao
4967d22af4 include/intrin: Implement _rot{l,r}{8,16} functions
They are declared in 'intrin.h' but were not defined anywhere.

The implementations might be imperfect: If the second argument is <= zero
or is >= the width of the first parameter, one of the shift counts will be
out of range and cause undefined behavior. Some bitwise arithmetic may be
involved to prevent this (like in 'ia32intrin.h' from GCC 8), which is
unfortunately not recognized by GCC 7 and earlier versions as bitwise
rotation and results in rather complex code.

Reference: https://docs.microsoft.com/en-us/cpp/intrinsics/rotl8-rotl16?view=msvc-160
Reference: https://github.com/msys2/MINGW-packages/issues/7437
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-20 17:14:41 +08:00
Jacek Caban
9e731f6d93 headers: Update to Wine 6.0-rc3.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-18 20:14:51 +01:00
Jacek Caban
b7358861d9 headers: Regenerate headers with recent widl.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-18 20:14:48 +01:00
Jacek Caban
bc33040ac4 widl: Update to Wine 6.0-rc3.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-18 20:14:37 +01:00
Steve Lhomme
09e9c1d5ef headers: put the [v1_enum] in bdatypes.h on one line
Otherwise it results in a compilation error with widl 6.0-rc1:
  include/bdatypes.h:43: error: 'PBDA_EVENT_ID': [v1_enum] attribute applied to non-enum type

The code generated without this [v1_enum] is the same but we can keep this
information.
2020-12-18 20:12:45 +01:00
Steve Lhomme
9ba84d465e headers: don't mark enums with [v1_enum] if they are not used in IDLs 2020-12-18 20:12:45 +01:00
Biswapriyo Nath
f84d795098 headers: Add directxmath.h with some basic declarations.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-18 19:43:52 +08:00
Biswapriyo Nath
c065a73cf1 headers: Add STATIC_CODECAPI macros in codecapi.h.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-16 21:57:13 +08:00
Biswapriyo Nath
394ae5a5dd headers: Add CODECAPI_GUID macros in codecapi.h.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-16 21:56:38 +08:00
Biswapriyo Nath
9dcff19365 headers: Remove previous GUIDs in codecapi.h.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-16 21:55:43 +08:00
Biswapriyo Nath
7828fc3dd6 headers: Add GUIDs in codecapi.h.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-16 21:55:39 +08:00
Jacek Caban
63da0e8aaa headers: Regenerate makefiles.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-15 17:00:50 +01:00
Jacek Caban
3bb1d157aa makefile: Don't try to generate headers from IDLs that are not meant to be generated.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-15 17:00:18 +01:00
Jacek Caban
b0ae8f119e makefiles: Add a rule to generate _i.c files.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-15 17:00:12 +01:00
Liu Hao
89222c9bef include/audioclient: Regenerate from IDL
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-15 22:07:43 +08:00
Biswapriyo Nath
7c80e3283f headers: Add IAudioClient3 and IAudioAmbisonicsControl in AudioClient.idl.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-15 21:59:34 +08:00
Liu Hao
1c90e6a81f include/mshtmhst: Regenerate from IDL
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-15 21:52:04 +08:00
Biswapriyo Nath
156f6cd62c headers: Add void parameter in EarlyStartDisplaySystem() in mshtmhst.idl.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-15 21:49:52 +08:00
Steve Lhomme
f827ff2e1c headers: remove proxys generated by widl 2020-12-15 13:22:59 +01:00
Steve Lhomme
1d5ace4ea8 headers: Regenerate with recent widl.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-15 12:53:54 +01:00
Steve Lhomme
9a670ff7e5 headers: do not typedef FARPROC function when running widl
widl 6.0-rc1 reports the following error:
  include/wincrypt.idl:17: error: calling convention applied to non-function type

FARPROC is not used in any IDL file anyway.
2020-12-15 12:53:14 +01:00
Steve Lhomme
2c428051a1 headers: fix IAsyncAction definition in windows.foundation 2020-12-14 22:24:52 +01:00
Steve Lhomme
fb37b94944 headers: fix ApplicationDataSetVersionHandler definition 2020-12-14 22:24:52 +01:00
Steve Lhomme
e2510a5c06 headers: fix enum declaration 2020-12-14 22:24:52 +01:00
Steve Lhomme
980e8ecd08 headers: fix enum values after widl update 2020-12-14 22:24:52 +01:00
Steve Lhomme
6e796ec07d headers: re-generate headers with a newer widl 2020-12-14 22:24:52 +01:00
Steve Lhomme
9c5f624962 headers: update windows.security.cryptography.h 2020-12-14 22:24:52 +01:00
Jacek Caban
235dccd820 headers: Regenerate headers with recent widl version. 2020-12-13 11:27:36 +01:00
Biswapriyo Nath
829a2e2a00 headers: Add dismapi.h file.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-10 10:08:12 +08:00
Rafał Harabień
f45f1d3552 Fix some defines in d3d9 headers
* rename D3DENUM_NO_WHQL_LEVEL to D3DENUM_WHQL_LEVEL
* remove D3DCAPS2_NO2DDURING3DSCENE
* remove D3DCAPS2_CANRENDERWINDOWED

Removed defines seems to have been copied from d3d8.h and according to
public docs do not exist in d3d9.

Signed-off-by: Rafał Harabień <rafalh92@outlook.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-12-09 10:13:56 +08:00
Jacek Caban
0e2cd03cdf headers: Update imported headers to Wine 6.0-rc1 version.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-07 22:19:29 +01:00
Jacek Caban
1bf35edea5 widl: Update to Wine 6.0-rc1. 2020-12-07 22:17:50 +01:00
Biswapriyo Nath
89295082c5 headers: Include stdio.h in comutil.h for _COM_PRINTF_S_1 macro.
This fixes the error: 'sprintf_s' was not declared in this scope.

Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
2020-12-07 22:14:04 +01:00
Martin Storsjö
660e09f3cb headers: Don't redirect _mm_malloc to _aligned_malloc
The headers have a number of brittle workarounds, all trying to make
the "#define _mm_malloc _aligned_malloc" redirect in malloc.h work
properly.

That define is problematic, because it behaves differently depending
on the order headers are included. If malloc.h is included before
GCC's mm_malloc.h, malloc.h does "#define _mm_malloc _aligned_malloc"
and "#define _MM_MALLOC_H_INCLUDED", making sure that a later include
of GCC's mm_malloc.h define nothing. If the user code calls
_mm_malloc() after that, it ends up calling _aligned_malloc().

However, if the user code (implicitly) includes mm_malloc.h before
malloc.h, the situation is much trickier. (mm_malloc.h gets implicitly
included by x86intrin.h, which is included by e.g. winnt.h.)

GCC's mm_malloc.h looks like this, a little simplified:

    #ifndef _MM_MALLOC_H_INCLUDED
    #define _MM_MALLOC_H_INCLUDED

    #include <stdlib.h>

    static __inline__ void *_mm_malloc (...)

The stdlib.h include implicitly includes malloc.h, which does
"#define _mm_malloc _aligned_malloc", which causes GCC's mm_malloc.h
to suddenly define a static inline _aligned_malloc instead.

This has been halfway worked around by not defining the non-inline
_aligned_malloc in malloc.h if _MM_MALLOC_H_INCLUDED already was
defined, making the inline function the only definition of it.

So when expanding malloc.h in this context, there's no way to stop the
outer mm_malloc.h from defining a static inline function, and regardless
of whatever name it is renamed to with a define, that static inline
function is what callers to _mm_malloc end up calling.

This causes calls to both _mm_malloc and _aligned_malloc to end
up either with the dllimported function or the static inline version,
depending on which header was included first. If one translation unit
calls _mm_malloc and another one calls _mm_free, there's a risk that
they end up mismatched, which is potentially fatal.

This was earlier attempted to be worked around in e.g. intrin.h, by
forcing including malloc.h before x86intrin.h, but such workarounds
are futile, as user code could also include x86intrin.h, immintrin.h
or even mm_malloc.h directly, without passing through mingw headers.

Instead just remove the _mm_malloc redefinition and include the
compiler's mm_malloc.h header. This makes sure that regardless of
header include order, calls to _aligned_malloc and _mm_malloc will
always end up to the same function, avoiding risks of mismatches
between *_malloc and *_free.

This also has the effect of no longer hiding the declaration of
_aligned_malloc when including intrin.h first.

Signed-off-by: Martin Storsjö <martin@martin.st>
2020-12-03 16:34:01 +02:00
Martin Storsjö
f70a833750 headers: Remove workarounds for undeffing _aligned_malloc
These workarounds stem from an earlier attempt to work around clashes
between _mm_malloc and _mm_free with _aligned_malloc, see
228f1adee7 for where the earlier
"#define _aligned_malloc ..." workaround was removed.

Signed-off-by: Martin Storsjö <martin@martin.st>
2020-12-03 14:44:46 +02:00
Biswapriyo Nath
f5d7741dd5 headers: Add missing APIs in winnls.h.
Signed-off-by: Biswapriyo Nath <nathbappai@gmail.com>
Signed-off-by: Liu Hao <lh_mouse@126.com>
2020-11-26 22:37:05 +08:00