Skip to content

Commit

Permalink
Cygwin: Fix compiling with w32api-headers v11.0.0
Browse files Browse the repository at this point in the history
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 3bee682)
  • Loading branch information
Biswa96 authored and dscho committed Nov 25, 2023
1 parent 74016bb commit 52b92eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions winsup/cygwin/ntdll.h
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,12 @@ enum
FILE_RENAME_IGNORE_READONLY_ATTRIBUTE = 0x40
};

#if (__MINGW64_VERSION_MAJOR < 11)
enum
{
FILE_CS_FLAG_CASE_SENSITIVE_DIR = 0x01
};
#endif

enum
{
Expand Down

0 comments on commit 52b92eb

Please sign in to comment.