Re: _CRT_glob stuff

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2025-10-01T15:19:56Z
Lists: pgsql-hackers
On 18.09.25 12:02, Peter Eisentraut wrote:
> So it should look like
> 
> diff --git a/src/common/exec.c b/src/common/exec.c
> index 8b690a10185..cca89f04074 100644
> --- a/src/common/exec.c
> +++ b/src/common/exec.c
> @@ -46,7 +46,8 @@
> 
>   /* Inhibit mingw CRT's auto-globbing of command line arguments */
>   #if defined(WIN32) && !defined(_MSC_VER)
> -extern int _CRT_glob = 0;      /* 0 turns off globbing; 1 turns it on */
> +extern int _CRT_glob;
> +int            _CRT_glob = 0;      /* 0 turns off globbing; 1 turns it 
> on */
>   #endif
> 
>   /*

I have committed this.



Commits

  1. Fix compiler warnings around _CRT_glob

  2. Inhibit mingw CRT's auto-globbing of command line arguments