On Wed, Jul 22, 2020 at 12:31:06PM +0100, Alex Bennée wrote:
>
> Stefan Weil writes:
>
> > Am 22.07.20 um 12:32 schrieb 罗勇刚(Yonggang Luo):
> >
> >> I would suggest use loadLibrary to retrieve the function, if not
> >> available, then return 0 (For Win Xp and Vista);
> >
> >
> > Maybe using Globa
On Wed, Jul 22, 2020 at 12:33:47PM +0100, Alex Bennée wrote:
>
> Stefan Weil writes:
>
> > Am 22.07.20 um 08:28 schrieb Alex Bennée:
> >
> >> It seems GetPhysicallyInstalledSystemMemory isn't available in the
> >> MinGW headers so we have to declare it ourselves. Compile tested only.
> >
> >
> >
Stefan Weil writes:
> Am 22.07.20 um 08:28 schrieb Alex Bennée:
>
>> It seems GetPhysicallyInstalledSystemMemory isn't available in the
>> MinGW headers so we have to declare it ourselves. Compile tested only.
>
>
> It is available, at least for Mingw-w64 which I also use for cross
> builds on
Stefan Weil writes:
> Am 22.07.20 um 12:32 schrieb 罗勇刚(Yonggang Luo):
>
>> I would suggest use loadLibrary to retrieve the function, if not
>> available, then return 0 (For Win Xp and Vista);
>
>
> Maybe using GlobalMemoryStatusEx is a better alternative. It is
> available since XP.
I would we
Am 22.07.20 um 12:32 schrieb 罗勇刚(Yonggang Luo):
> I would suggest use loadLibrary to retrieve the function, if not
> available, then return 0 (For Win Xp and Vista);
Maybe using GlobalMemoryStatusEx is a better alternative. It is
available since XP.
Regards,
Stefan
||
I would suggest use loadLibrary to retrieve the function, if not available,
then return 0 (For Win Xp and Vista);
On Wed, Jul 22, 2020 at 2:34 PM Alex Bennée wrote:
> It seems GetPhysicallyInstalledSystemMemory isn't available in the
> MinGW headers so we have to declare it ourselves. Compile te
On Wed, Jul 22, 2020 at 12:03:27PM +0200, Stefan Weil wrote:
> Am 22.07.20 um 08:28 schrieb Alex Bennée:
>
> > It seems GetPhysicallyInstalledSystemMemory isn't available in the
> > MinGW headers so we have to declare it ourselves. Compile tested only.
>
>
> It is available, at least for Mingw-w
Am 22.07.20 um 08:28 schrieb Alex Bennée:
> It seems GetPhysicallyInstalledSystemMemory isn't available in the
> MinGW headers so we have to declare it ourselves. Compile tested only.
It is available, at least for Mingw-w64 which I also use for cross
builds on Debian, but is only included with _
On 7/22/20 8:28 AM, Alex Bennée wrote:
> It seems GetPhysicallyInstalledSystemMemory isn't available in the
> MinGW headers so we have to declare it ourselves. Compile tested only.
>
> Cc: Stefan Weil
> Signed-off-by: Alex Bennée
Reviewed-by: Philippe Mathieu-Daudé
> ---
> util/oslib-win32.c
It seems GetPhysicallyInstalledSystemMemory isn't available in the
MinGW headers so we have to declare it ourselves. Compile tested only.
Cc: Stefan Weil
Signed-off-by: Alex Bennée
---
util/oslib-win32.c | 15 +--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/util/o
10 matches
Mail list logo