This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [mingw32] environment variables are case-insensitive on win32


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]