From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2201) id E71BE3858436; Mon, 1 May 2023 17:18:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E71BE3858436 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1682961521; bh=nxkWvI8fT3qgDw78p05K64P4THUpl76HkihzBsfBgZU=; h=From:To:Subject:Date:From; b=XSP0Xf9z+K0yCNZcBcbQoRcdSf/T18D+GkbiybR5UOBnssG1+36u4kfXmSlyMteVW YhFSeUR/xFsOOT8FRuvUGcVvcotqVGvVaqmK8Hq29lZc1HuQWEofNH/tsYfgMBu3GD m7PaJh3qJCQUFKFdj7urKiBnIdA2YM99O2bSEa+c= 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: Fix compiling with w32api-headers v11.0.0 X-Act-Checkin: newlib-cygwin X-Git-Author: Biswapriyo Nath X-Git-Refname: refs/heads/master X-Git-Oldrev: d160bcd4aade7527712d2bc94f8c7f0e4b7f8f0f X-Git-Newrev: 3bee68248fc8e164a8bb6bba3f105b10fdec8a71 Message-Id: <20230501171841.E71BE3858436@sourceware.org> Date: Mon, 1 May 2023 17:18:41 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D3bee68248fc= 8e164a8bb6bba3f105b10fdec8a71 commit 3bee68248fc8e164a8bb6bba3f105b10fdec8a71 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 | { | ^ 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 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 =3D 0x40 }; =20 +#if (__MINGW64_VERSION_MAJOR < 11) enum { FILE_CS_FLAG_CASE_SENSITIVE_DIR =3D 0x01 }; +#endif =20 enum {