diff options
author | Biswapriyo Nath <nathbappai@gmail.com> | 2023-04-30 00:03:21 +0530 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2023-05-01 18:24:36 +0100 |
commit | 1c63eaace825e32f2d03a3a228a40b1019b94c71 (patch) | |
tree | 418ab05607b1bb4e3d5f645d258041261b98e356 | |
parent | 7b3b2c201a271c5dcddcd3060f58d841478d47d9 (diff) | |
download | newlib-1c63eaace825e32f2d03a3a228a40b1019b94c71.zip newlib-1c63eaace825e32f2d03a3a228a40b1019b94c71.tar.gz newlib-1c63eaace825e32f2d03a3a228a40b1019b94c71.tar.bz2 |
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)
-rw-r--r-- | winsup/cygwin/local_includes/ntdll.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/local_includes/ntdll.h b/winsup/cygwin/local_includes/ntdll.h index 0f23108..a4e8b88 100644 --- a/winsup/cygwin/local_includes/ntdll.h +++ b/winsup/cygwin/local_includes/ntdll.h @@ -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 { |