diff options
| author | Werner Koch <[email protected]> | 2025-06-16 14:47:09 +0200 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-06-16 14:47:09 +0200 |
| commit | 1d4e09c9b1b184d0369a90c2adacab8f197310f6 (patch) | |
| tree | 1c0b78ffc7f0e6edd1e6c3116200b29c25702e66 /src | |
| parent | argparse: Remove a duplicated condition. (diff) | |
| download | libgpg-error-1d4e09c9b1b184d0369a90c2adacab8f197310f6.tar.gz libgpg-error-1d4e09c9b1b184d0369a90c2adacab8f197310f6.zip | |
w32: Allow building on Windows with gcc < 12
* src/spawn-w32.c (_WIN32_WINNT): Define.
--
With the i686-w64-mingw32-gcc version 12 the default NT version is
10 (0xa00) but the gcc 10 mingw comes defines 5.02. To avoid setting
this in the gcc call as we used to do, we define it here.
Diffstat (limited to 'src')
| -rw-r--r-- | src/spawn-w32.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/spawn-w32.c b/src/spawn-w32.c index fe4c8be..8ae589b 100644 --- a/src/spawn-w32.c +++ b/src/spawn-w32.c @@ -27,6 +27,10 @@ #error This code is only used on W32. #endif +#if _WIN32_WINNT < 0x0600 +# define _WIN32_WINNT 0x0600 /* Required for STARTUPINFOEXW */ +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> |
