public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Jon Turney <jturney@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: Fix compiling with w32api-headers v11.0.0 Date: Mon, 1 May 2023 17:18:41 +0000 (GMT) [thread overview] Message-ID: <20230501171841.E71BE3858436@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3bee68248fc8e164a8bb6bba3f105b10fdec8a71 commit 3bee68248fc8e164a8bb6bba3f105b10fdec8a71 Author: Biswapriyo Nath <nathbappai@gmail.com> Date: Sun Apr 30 00:03:21 2023 +0530 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 | { | ^ Diff: --- winsup/cygwin/local_includes/ntdll.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/winsup/cygwin/local_includes/ntdll.h b/winsup/cygwin/local_includes/ntdll.h index 8c4d00883..a1a9f7f8d 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 {
reply other threads:[~2023-05-01 17:18 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230501171841.E71BE3858436@sourceware.org \ --to=jturney@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).