4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-18 15:09:32 +08:00

Cygwin: Fix compiling with w32api-headers v11.0.0

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 | {
      | ^

(cherry picked from commit 3bee68248fc8e164a8bb6bba3f105b10fdec8a71)
This commit is contained in:
Biswapriyo Nath 2023-04-30 00:03:21 +05:30 committed by Jon Turney
parent 7b3b2c201a
commit 1c63eaace8
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81

View File

@ -518,10 +518,12 @@ enum
FILE_RENAME_IGNORE_READONLY_ATTRIBUTE = 0x40
};
#if (__MINGW64_VERSION_MAJOR < 11)
enum
{
FILE_CS_FLAG_CASE_SENSITIVE_DIR = 0x01
};
#endif
enum
{