[PATCH] Cygwin: Fix compiling with w32api-headers v11.0.0
Jon Turney
jon.turney@dronecode.org.uk
Sat Apr 29 15:40:39 GMT 2023
On 29/04/2023 14:22, Biswapriyo Nath wrote:
> This solves redefinition of FILE_CS_FLAG_CASE_SENSITIVE_DIR in winnt.h
> and fixes the following compiler errors
>
> ntdll.h:523:3: error: expected identifier before numeric constant
> 523 | FILE_CS_FLAG_CASE_SENSITIVE_DIR = 0x01
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ntdll.h:522:1: note: to match this ‘{’
> 522 | {
> | ^
> ---
> winsup/cygwin/local_includes/ntdll.h | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/winsup/cygwin/local_includes/ntdll.h b/winsup/cygwin/local_includes/ntdll.h
> index 8c4d008..488e659 100644
> --- a/winsup/cygwin/local_includes/ntdll.h
> +++ b/winsup/cygwin/local_includes/ntdll.h
> @@ -518,11 +518,6 @@ enum
> FILE_RENAME_IGNORE_READONLY_ATTRIBUTE = 0x40
> };
>
> -enum
> -{
> - FILE_CS_FLAG_CASE_SENSITIVE_DIR = 0x01
> -};
> -
I think this probably needs wrapping in a __MINGW64_VERSION_MAJOR check,
or the minimum w32api version needs checking in winsup/configure.ac.
More information about the Cygwin-developers
mailing list