aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2023-04-30 00:03:21 +0530
committerJon Turney <jon.turney@dronecode.org.uk>2023-05-01 11:40:52 +0100
commit3bee68248fc8e164a8bb6bba3f105b10fdec8a71 (patch)
tree5c38a66f754b0999ed2478f78717531e3994d2ec /winsup
parentd160bcd4aade7527712d2bc94f8c7f0e4b7f8f0f (diff)
downloadnewlib-3bee68248fc8e164a8bb6bba3f105b10fdec8a71.zip
newlib-3bee68248fc8e164a8bb6bba3f105b10fdec8a71.tar.gz
newlib-3bee68248fc8e164a8bb6bba3f105b10fdec8a71.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 | { | ^
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/local_includes/ntdll.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/local_includes/ntdll.h b/winsup/cygwin/local_includes/ntdll.h
index 8c4d008..a1a9f7f 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
{