Re: [Mingw-w64-public] How to fix error with macros in d3d12?

2022-07-25 Thread Zebediah Figura
Sorry, accidentally sent this reply to wine-devel only... On 7/25/22 14:12, Zebediah Figura wrote: On 7/25/22 10:25, Jacek Caban wrote: On 7/25/22 00:10, Zebediah Figura wrote: (+ wine-devel) On 6/11/22 13:26, LIU Hao wrote: 在 2022-06-12 01:59, Zebediah Figura 写道: The combination of `extern

Re: [Mingw-w64-public] How to fix error with macros in d3d12?

2022-07-24 Thread Zebediah Figura
(+ wine-devel) On 6/11/22 13:26, LIU Hao wrote: 在 2022-06-12 01:59, Zebediah Figura 写道: The combination of `extern` with `__gnu_inline__` is necessary to suppress generation of a function body if the attached function could not be inlined when compiling as C99. Why do we need that

Re: [Mingw-w64-public] How to fix error with macros in d3d12?

2022-06-11 Thread Zebediah Figura
On 6/11/22 12:34, LIU Hao wrote: 在 2022-06-11 21:10, Biswapriyo Nath 写道: After adding #define WIDL_C_INLINE_WRAPPERS, this is shown: error: multiple storage classes in in declaration specifiers I think this is caused by static FORCEINLINE ULONG IUnknown_AddRef(IUnknown* This) { which con

Re: [Mingw-w64-public] [PATCH v2] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-19 Thread Zebediah Figura (she/her)
On 1/19/21 3:30 PM, Martin Storsjö wrote: > On Tue, 19 Jan 2021, Zebediah Figura wrote: > >> On 1/18/21 11:33 PM, Liu Hao wrote: >>> 在 2021/1/19 上午11:54, Zebediah Figura (she/her) 写道: >>>> >>>> Do you mean that the writer should change the

Re: [Mingw-w64-public] [PATCH v2] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-19 Thread Zebediah Figura
On 1/18/21 11:33 PM, Liu Hao wrote: > 在 2021/1/19 上午11:54, Zebediah Figura (she/her) 写道: >> >> Do you mean that the writer should change the above code to e.g. >> "__atomic_load_n(&var, ___ATOMIC_ACQUIRE)", or that the read already >> implies acquire sema

Re: [Mingw-w64-public] [PATCH v2] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-18 Thread Zebediah Figura (she/her)
On 1/18/21 9:15 PM, Liu Hao wrote: > 在 2021/1/19 上午3:32, Zebediah Figura (she/her) 写道: >> I guess I ask because it's not clear to me whether it should be >> necessary either. It doesn't seem to be present for x86, but there might >> be code out there that does so

Re: [Mingw-w64-public] [PATCH v2] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-18 Thread Zebediah Figura (she/her)
On 1/18/21 12:34 PM, Martin Storsjö wrote: > On Mon, 18 Jan 2021, Zebediah Figura (she/her) wrote: > >> On 1/17/21 2:05 PM, Martin Storsjö wrote: >>> Signed-off-by: Martin Storsjö >>> --- >>> Added memory clobbers for MemoryBarrier(). >>>

Re: [Mingw-w64-public] [PATCH v2] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-18 Thread Zebediah Figura (she/her)
On 1/17/21 2:05 PM, Martin Storsjö wrote: > Signed-off-by: Martin Storsjö > --- > Added memory clobbers for MemoryBarrier(). > --- > mingw-w64-headers/crt/_mingw.h.in | 8 > mingw-w64-headers/include/winnt.h | 6 ++ > 2 files changed, 14 insertions(+) > > diff --git a/mingw-w64-head

Re: [Mingw-w64-public] [PATCH 3/6] wdm.h: Define KSYNCHRONIZE_ROUTINE.

2020-06-02 Thread Zebediah Figura
On 6/2/20 10:33 AM, Liu Hao wrote: > 在 2020/6/2 23:01, Zebediah Figura 写道: >> >> My understanding is that NTAPI is necessary even where not present in >> Microsoft's headers, in order to add a calling-convention attribute to >> functions that do not otherwise hav

Re: [Mingw-w64-public] [PATCH 3/6] wdm.h: Define KSYNCHRONIZE_ROUTINE.

2020-06-02 Thread Zebediah Figura
On 6/2/20 9:46 AM, Liu Hao wrote: 在 2020/6/2 4:54, Zebediah Figura 写道: Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/wdm.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mingw-w64-headers/ddk/include/ddk/wdm.h b/mingw-w64-headers/ddk/include

[Mingw-w64-public] [PATCH 3/6] wdm.h: Define KSYNCHRONIZE_ROUTINE.

2020-06-01 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/wdm.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mingw-w64-headers/ddk/include/ddk/wdm.h b/mingw-w64-headers/ddk/include/ddk/wdm.h index f54e0a12..e80c9b13 100644 --- a/mingw-w64-headers/ddk

[Mingw-w64-public] [PATCH 4/6] wdm.h: Add some power framework definitions.

2020-06-01 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/wdm.h | 50 + 1 file changed, 50 insertions(+) diff --git a/mingw-w64-headers/ddk/include/ddk/wdm.h b/mingw-w64-headers/ddk/include/ddk/wdm.h index e80c9b13..2194fba0 100644 --- a/mingw-w64-headers/ddk

[Mingw-w64-public] [PATCH 2/6] driverspecs.h: Add more SAL directives.

2020-06-01 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/include/driverspecs.h | 27 + 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/mingw-w64-headers/include/driverspecs.h b/mingw-w64-headers/include/driverspecs.h index 8fbfeb00..509a2bd4 100644 --- a/mingw

[Mingw-w64-public] [PATCH 6/6] wdm.h: Add some EX_TIMER definitions.

2020-06-01 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/wdm.h | 49 + 1 file changed, 49 insertions(+) diff --git a/mingw-w64-headers/ddk/include/ddk/wdm.h b/mingw-w64-headers/ddk/include/ddk/wdm.h index f662678d..d79e0e76 100644 --- a/mingw-w64-headers/ddk

[Mingw-w64-public] [PATCH 5/6] wdm.h: Define DMA_COMPLETION_STATUS.

2020-06-01 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/wdm.h | 8 1 file changed, 8 insertions(+) diff --git a/mingw-w64-headers/ddk/include/ddk/wdm.h b/mingw-w64-headers/ddk/include/ddk/wdm.h index 2194fba0..f662678d 100644 --- a/mingw-w64-headers/ddk/include/ddk/wdm.h

[Mingw-w64-public] [PATCH 1/6] sal.h: Add more SAL directives.

2020-06-01 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/include/sal.h | 40 +++-- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/mingw-w64-headers/include/sal.h b/mingw-w64-headers/include/sal.h index 6915a81b..a5ad9389 100644 --- a/mingw-w64-headers

[Mingw-w64-public] [PATCH] crt: Correctly restore %edi on exit from __argtos().

2019-06-29 Thread Zebediah Figura
sscanf is a cdecl function; we must restore the stack after calling it, or we will restore the wrong value for %edi. Signed-off-by: Zebediah Figura --- mingw-w64-crt/stdio/scanf.S | 1 + 1 file changed, 1 insertion(+) diff --git a/mingw-w64-crt/stdio/scanf.S b/mingw-w64-crt/stdio/scanf.S index

Re: [Mingw-w64-public] [PATCH v2 2/2] ntstrsafe.h: More fully implement.

2019-05-04 Thread Zebediah Figura
On 5/4/19 9:46 PM, Liu Hao wrote: 在 2019/5/2 12:44, Zebediah Figura 写道: Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/ntstrsafe.h | 1633 + 1 file changed, 1633 insertions(+) create mode 100644 mingw-w64-headers/ddk/include/ddk/ntstrsafe.h As for

[Mingw-w64-public] [PATCH v2 2/2] ntstrsafe.h: More fully implement.

2019-05-01 Thread Zebediah Figura
From 5526cb339d436d54e88146fa74fb43a72ad865d4 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Wed, 1 May 2019 10:38:42 -0500 Subject: [PATCH 2/2] ntstrsafe.h: More fully implement. Copied from strsafe.h, with HRESULT replaced with NTSTATUS, STRSAFEAPI with NTSTRSAFEDDI, etc

[Mingw-w64-public] [PATCH v2 1/2] ntstrsafe.h: Remove incomplete header.

2019-05-01 Thread Zebediah Figura
Finally got around to resending this, after a good 3 months. Split into 2 patches per review. From 9c121db195cfb05ed5b40f031dc68544cfcd9fae Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Wed, 1 May 2019 10:37:55 -0500 Subject: [PATCH 1/2] ntstrsafe.h: Remove incomplete header. Signed-off

[Mingw-w64-public] [PATCH] ntstrsafe.h: More fully implement.

2019-02-03 Thread Zebediah Figura
>From 205ded66096b1d69e332eba5129d327c294971d7 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sat, 15 Dec 2018 21:00:39 -0600 Subject: [PATCH] ntstrsafe.h: More fully implement. Copied from strsafe.h, with HRESULT replaced with NTSTATUS, STRSAFEAPI with NTSTRSAFEDDI, etc. UNICODE_STR

[Mingw-w64-public] [PATCH] ntintsafe.h: Add header.

2019-01-31 Thread Zebediah Figura
>From 3dcface26c73620cfc8ad7bd2f6110c20d0f2a61 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sat, 15 Dec 2018 21:03:47 -0600 Subject: [PATCH] ntintsafe.h: Add header. Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/ntintsafe.h | 411 ++ 1 f

Re: [Mingw-w64-public] [PATCH] intsafe.h: Return the correct value on overflow.

2019-01-31 Thread Zebediah Figura
On 1/31/19 3:56 AM, Liu Hao wrote: 在 2019/1/31 0:07, Zebediah Figura 写道: --- mingw-w64-headers/include/intsafe.h | 78 - 1 file changed, 44 insertions(+), 34 deletions(-) This patch looks good to me. Pushed to master. Thanks. (N.B. Next time, please sign off

[Mingw-w64-public] [PATCH] intsafe.h: Return the correct value on overflow.

2019-01-30 Thread Zebediah Figura
--- mingw-w64-headers/include/intsafe.h | 78 - 1 file changed, 44 insertions(+), 34 deletions(-) diff --git a/mingw-w64-headers/include/intsafe.h b/mingw-w64-headers/include/intsafe.h index 5764d4eb..701d4cef 100644 --- a/mingw-w64-headers/include/intsafe.h +++ b/min

Re: [Mingw-w64-public] [PATCH] ntintsafe.h: Add header.

2019-01-28 Thread Zebediah Figura
On 1/28/19 7:16 AM, Liu Hao wrote: 在 2019/1/28 9:45, Zebediah Figura 写道: From 8cb9f70bba03c555767e6d9767b92ac3b9b624f2 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sat, 15 Dec 2018 21:03:47 -0600 Subject: [PATCH] ntintsafe.h: Add header. Signed-off-by: Zebediah Figura --- mingw

Re: [Mingw-w64-public] [PATCH] ntintsafe.h: Add header.

2019-01-28 Thread Zebediah Figura
On 1/28/19 7:02 AM, Jacek Caban wrote: Hi Zebediah, The patch looks mostly good to me. On 1/28/19 2:45 AM, Zebediah Figura wrote: +/** If CHAR is unsigned, use static inline for functions that operate +on chars.  This avoids the risk of linking to the wrong function when +different

[Mingw-w64-public] [PATCH] ntintsafe.h: Add header.

2019-01-27 Thread Zebediah Figura
>From 8cb9f70bba03c555767e6d9767b92ac3b9b624f2 Mon Sep 17 00:00:00 2001 From: Zebediah Figura Date: Sat, 15 Dec 2018 21:03:47 -0600 Subject: [PATCH] ntintsafe.h: Add header. Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/ntintsafe.h | 401 ++ 1 f

[Mingw-w64-public] [PATCH v4] ntoskrnl: Provide memcmp() on i386.

2019-01-23 Thread Zebediah Figura
It is not exported from the DLL. The implementation was copied and modified from wmemcmp.c in libmingwex. v4: fix sign again, move to libntoskrnl --- mingw-w64-crt/Makefile.am | 6 ++ mingw-w64-crt/libsrc/memcmp.c | 26 ++ 2 files changed, 32 insertions(+) creat

Re: [Mingw-w64-public] [PATCH v3] memcmp: Add import library.

2019-01-23 Thread Zebediah Figura
On 1/23/19 6:10 AM, Jacek Caban wrote: Hi Zebediah, On 1/23/19 2:27 AM, Zebediah Figura wrote: This provides memcmp() for x86 kernel-mode drivers, which for some reason is not exported from ntoskrnl like other CRT functions. The implementation was copied and modified from wmemcmp.c in

Re: [Mingw-w64-public] [PATCH v3] memcmp: Add import library.

2019-01-23 Thread Zebediah Figura
On 1/23/19 3:26 AM, Liu Hao wrote: 在 2019/1/23 9:27, Zebediah Figura 写道: This provides memcmp() for x86 kernel-mode drivers, which for some reason is not exported from ntoskrnl like other CRT functions. The implementation was copied and modified from wmemcmp.c in libmingwex. v3: fix types

[Mingw-w64-public] [PATCH v3] memcmp: Add import library.

2019-01-22 Thread Zebediah Figura
This provides memcmp() for x86 kernel-mode drivers, which for some reason is not exported from ntoskrnl like other CRT functions. The implementation was copied and modified from wmemcmp.c in libmingwex. v3: fix types, restrict to i386 --- mingw-w64-crt/Makefile.am | 5 + mingw-w64-crt/l

[Mingw-w64-public] [PATCH] dontuse.h: Add stub header.

2018-12-18 Thread Zebediah Figura
In the PSDK this contains deprecation pragmas for "banned" APIs. Signed-off-by: Zebediah Figura --- mingw-w64-headers/include/dontuse.h | 8 1 file changed, 8 insertions(+) create mode 100644 mingw-w64-headers/include/dontuse.h diff --git a/mingw-w64-headers/include/do

[Mingw-w64-public] [PATCH v2] memcmp: Add import library.

2018-12-18 Thread Zebediah Figura
This provides memcmp() for kernel-mode drivers, which for some reason is not export from ntoskrnl like other crt functions. The implementation was copied from wmemcmp.c in libmingwex. Signed-off-by: Zebediah Figura --- mingw-w64-crt/Makefile.am | 9 + mingw-w64-crt/libsrc/memcmp.c

Re: [Mingw-w64-public] [PATCH] memcmp: Add import library.

2018-12-17 Thread Zebediah Figura
On 12/17/18 9:30 AM, Jacek Caban wrote: Hi Zebediah, On 17/12/2018 16:15, Zebediah Figura wrote: This provides memcmp() for kernel-mode drivers, which for some reason is not exported from ntoskrnl like other crt functions. It should work with -lntdllcrt now. Cheers, Jacek That doesn&#

[Mingw-w64-public] [PATCH] memcmp: Add import library.

2018-12-17 Thread Zebediah Figura
This provides memcmp() for kernel-mode drivers, which for some reason is not exported from ntoskrnl like other crt functions. The implementation was copied from wmemcmp.c in libmingwex. Signed-off-by: Zebediah Figura --- mingw-w64-crt/Makefile.am | 9 + mingw-w64-crt/libsrc

[Mingw-w64-public] [PATCH 2/2] driverspecs.h: Add more SAL directives.

2018-12-16 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/include/driverspecs.h | 25 ++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/mingw-w64-headers/include/driverspecs.h b/mingw-w64-headers/include/driverspecs.h index ad39a93f..8fbfeb00 100644 --- a/mingw

[Mingw-w64-public] [PATCH 1/2] sal.h: Add more SAL directives.

2018-12-16 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/include/sal.h | 28 1 file changed, 28 insertions(+) diff --git a/mingw-w64-headers/include/sal.h b/mingw-w64-headers/include/sal.h index 0a2df8b4..d915adeb 100644 --- a/mingw-w64-headers/include/sal.h +++ b/mingw

[Mingw-w64-public] [PATCH resend] evntprov.h: Remove extraneous typedef.

2018-12-15 Thread Zebediah Figura
We don't actually typedef this struct in the declaration. Signed-off-by: Zebediah Figura --- mingw-w64-headers/include/evntprov.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/evntprov.h b/mingw-w64-headers/include/evntprov.h index ae4

[Mingw-w64-public] [PATCH resend] wmilib.h: Add function type declarations.

2018-12-15 Thread Zebediah Figura
Signed-off-by: Zebediah Figura --- mingw-w64-headers/ddk/include/ddk/wmilib.h | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/mingw-w64-headers/ddk/include/ddk/wmilib.h b/mingw-w64-headers/ddk/include/ddk/wmilib.h index 85ad7611..e3e5cee5 100644 --- a

[Mingw-w64-public] [PATCH] wmilib.h: Add function type declarations.

2018-12-15 Thread Zebediah Figura
--- mingw-w64-headers/ddk/include/ddk/wmilib.h | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/mingw-w64-headers/ddk/include/ddk/wmilib.h b/mingw-w64-headers/ddk/include/ddk/wmilib.h index 85ad7611..e3e5cee5 100644 --- a/mingw-w64-headers/ddk/include/ddk/wm

[Mingw-w64-public] [PATCH] evntprov.h: Remove extraneous typedef.

2018-12-15 Thread Zebediah Figura
We don't actually typedef this struct in the declaration. --- mingw-w64-headers/include/evntprov.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/include/evntprov.h b/mingw-w64-headers/include/evntprov.h index ae4bafa9..87f4eecb 100644 --- a/mingw-w64-header

[Mingw-w64-public] Compile failure due to GCC builtin

2017-12-16 Thread Zebediah Figura
Hello, While attempting to compile the CRT according to the instructions on sourceforge [1], I ran into a compile error: In file included from /usr/local/lib/gcc/i386-w64-mingw32/8.0.0/include/x86intrin.h:74, from /usr/local/i386-w64-mingw32/include/intrin.h:73,

Re: [Mingw-w64-public] [PATCH 04/17] headers: Skip the inline interlocked functions for arm64 (as on all other non-i386 archs)

2017-08-24 Thread Zebediah Figura
On 08/19/2017 04:25 PM, Martin Storsjö wrote: These are skipped on x86_64, arm and arm64 - in practice the condition maybe should be inverted to only include i386. Would it be worth adding a configure check for these? --

Re: [Mingw-w64-public] How to build the GCC cross-compiler?

2017-08-24 Thread Zebediah Figura
er. If you're interested in cross-compiling from Linux to Windows, you might want to look at my Nixcrpkgs project, since I've already figured out a lot of the basic issues and you can reproduce my results reliably by just running a few commands: https://github.com/DavidEGrayson/nixcrpkgs

[Mingw-w64-public] How to build the GCC cross-compiler?

2017-08-23 Thread Zebediah Figura
Hello, I am interested in implementing, or helping to implement, support for 16-bit code and NE executables in mingw. I am trying to build the gcc cross-compiler (i386-w64-mingw32-gcc) in accordance with the instructions at https://sourceforge.net/p/mingw-w64/wiki2/Cross%20Win32%20and%20Win6