This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [mingw32] environment variables are case-insensitive on win32
- From: Pedro Alves <palves at redhat dot com>
- To: Jerome Guitton <guitton at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 24 May 2012 18:19:56 +0100
- Subject: Re: [mingw32] environment variables are case-insensitive on win32
- References: <1337878161-20057-1-git-send-email-guitton@adacore.com>
On 05/24/2012 05:49 PM, Jerome Guitton wrote:
> +
> +#if defined(_WIN32) || !defined(__CYGWIN__)
I think you meant:
#if defined(_WIN32) && !defined(__CYGWIN__)
?
> +#define env_var_name_ncmp(a, b, length) strnicmp (a, b, length)
We use strncasecmp everywhere else.
> +#else
> +#define env_var_name_ncmp(a, b, length) strncmp(a, b, length)
> +#endif
> +
--
Pedro Alves