From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id 260AE3858D1E; Mon, 1 May 2023 18:29:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 260AE3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682965763; bh=XwwTsFIgBBy0arnpoNjHYOMxWjgp2xMVt/pkjfY+UQ8=; h=From:To:Subject:Date:From; b=ysnj6ZGJPpQAkrlpA0kFS/5g9RIDi1ZlmXPzcAS6uaT6ep1D1RWy5r5SF/DMOAwm9 yvI/5pTkhi+xcZE/raXGESUJvIjbY4fH078IHzIWBOpxB273p36aJJwdCPUWvcaxmG w29wRIovJ/iPaZcVgXFngMTzTuzkeHsS8xH5bCDE= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jon Turney To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/cygwin-3_4-branch] Cygwin: Fix compiling with w32api-headers v11.0.0 X-Act-Checkin: newlib-cygwin X-Git-Author: Biswapriyo Nath X-Git-Refname: refs/heads/cygwin-3_4-branch X-Git-Oldrev: 7b3b2c201a271c5dcddcd3060f58d841478d47d9 X-Git-Newrev: 1c63eaace825e32f2d03a3a228a40b1019b94c71 Message-Id: <20230501182923.260AE3858D1E@sourceware.org> Date: Mon, 1 May 2023 18:29:23 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D1c63eaace82= 5e32f2d03a3a228a40b1019b94c71 commit 1c63eaace825e32f2d03a3a228a40b1019b94c71 Author: Biswapriyo Nath Date: Sun Apr 30 00:03:21 2023 +0530 Cygwin: Fix compiling with w32api-headers v11.0.0 =20 This solves redefinition of FILE_CS_FLAG_CASE_SENSITIVE_DIR in winnt.h and fixes the following compiler errors =20 ntdll.h:523:3: error: expected identifier before numeric constant 523 | FILE_CS_FLAG_CASE_SENSITIVE_DIR =3D 0x01 | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ntdll.h:522:1: note: to match this =E2=80=98{=E2=80=99 522 | { | ^ =20 (cherry picked from commit 3bee68248fc8e164a8bb6bba3f105b10fdec8a71) 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_inc= ludes/ntdll.h index 0f2310882..a4e8b8855 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 =3D 0x40 }; =20 +#if (__MINGW64_VERSION_MAJOR < 11) enum { FILE_CS_FLAG_CASE_SENSITIVE_DIR =3D 0x01 }; +#endif =20 enum {