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
(+ 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
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
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
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
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
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().
>>>
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
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
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
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
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
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
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
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
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
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
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
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
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
>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
>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
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-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
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
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
>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
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
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
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
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
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
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
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
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
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
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
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
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-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
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
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,
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?
--
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
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
45 matches
Mail list logo