Re: Problems compiling 'getrandom' with MinGW

2020-07-03 Thread Bruno Haible
> 2020-06-28 Bruno Haible > > getrandom: Fix compilation errors on older versions of mingw. Oops, this patch produced compilation errors. Here's the fix. 2020-07-03 Bruno Haible getrandom: Fix compilation error on native Windows (regr. 2020-06-28). * lib/getrandom.c

Re: Problems compiling 'getrandom' with MinGW

2020-06-28 Thread Bruno Haible
Hi Eli, > > > 2. It causes the calling program to be linked against bcrypt.dll if > > > that library is available at build time. > > > > No, it links the program against bcrypt.dll if you are compiling with > > a _WIN32_WINNT value >= _WIN32_WINNT_WIN7 - consistently with > >

Re: Problems compiling 'getrandom' with MinGW

2020-06-28 Thread Eli Zaretskii
> From: Bruno Haible > Cc: Eli Zaretskii > Date: Sun, 28 Jun 2020 19:19:10 +0200 > > > 1. It assumes that the header bcrypt.h is always available. This is > > true for MinGW64, but not for mingw.org's MinGW. A proposed patch to > > allow the code be compiled without bcrypt.h is below > > Than

Re: Problems compiling 'getrandom' with MinGW

2020-06-28 Thread Bruno Haible
Hi Eli, > 1. It assumes that the header bcrypt.h is always available. This is > true for MinGW64, but not for mingw.org's MinGW. A proposed patch to > allow the code be compiled without bcrypt.h is below Thanks for the report and draft patch. I'm applying the patch below. My patch tests for th