From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sonic312-24.consmr.mail.bf2.yahoo.com (sonic312-24.consmr.mail.bf2.yahoo.com [74.6.128.86]) by sourceware.org (Postfix) with ESMTPS id 08CA23858D35 for ; Thu, 25 Nov 2021 18:06:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 08CA23858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sbcglobal.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=sbcglobal.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1637863589; bh=cC+0eYkdQ0lsibiNc2M0nYIpowIDjIQh2LaM2k0xf3Y=; h=Date:From:To:In-Reply-To:References:Subject:From:Subject:Reply-To; b=YF7TJ+/p7yE/9DKB0PEWq23FlvEZRLovDnoLxXZLdYwNihYipnDy4dSMnJahWD8EcaDyROD8c577xpA7ALjnVn+iVukR5/XCwbnJ1ZkCLnHK9yKHikyZvtRsQJb1sfl9k9B+vmlQBQfks0H5jhMk6IDuvxlvRNRgVYPJgyojVE7/M8UMkAEGtwfMw4m/IfJx7WWrDB77WiA4t3tYi2JPTWwOveqk5fDPEp4fWIX6UWMf/Ma0YSyvCuyEPm/oXQoDdvBVK3nmiOTeD2filRn/2QJtWXf2visSZoD9d5lAph8fmx0pVYGPwShVypDPzQfVgFqPqNwbDkEuXlEhYG1jLw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1637863589; bh=3c60xgiI+ugTHe1hlqpELtvohy+xE0ZsK+vg1KjZ7LW=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=BatWT0rws6rLJfUSkYp5aYY5SOWWQFmAElsGbRHdtHJ8zAmXGgYGvcuhWJaK9h4NLf8JIajV5/JCN2tmkXUE2bCfLM0WrAzy3/8V13jbNOCRsUU2ylMZljAhg9fhf3ZXqbMt1eFnzT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GjNlWBtei6CKF _XlKCKeNSrguG8ggbav0Lu8ssJwhvuhrYrvQJL3xCO_JM5uq1FFvLxQH.m5EvwIXMpKjlfsaeuia WCzc.tDyzGxjk0CUxqK9oqNx36Facw78ntZOvI9BH08McrEIk_4OsoDrDRR6oKBoGgZkFZWTLzFf GEuX4US29nyU51FkW_6RnobXKVv8omfGv3R_eBSLHiLnOT99Ka3S.I2E5094rFqT8il1QuoGspPu ON1.ohnqVk4glzjx3jf4hEnlgxJjSwqx0xjDT949XCjuP036W_2h8.e0LFeDspUkl625pgBZ0hT. 2lcT0k4ralrNqC0s- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Thu, 25 Nov 2021 18:06:29 +0000 Date: Thu, 25 Nov 2021 18:06:24 +0000 (UTC) From: "Z. Majeed" To: "cygwin-developers@cygwin.com" Message-ID: <743516839.2623934.1637863584991@mail.yahoo.com> In-Reply-To: References: <1016746971.2414349.1637763426878.ref@mail.yahoo.com> <1016746971.2414349.1637763426878@mail.yahoo.com> Subject: Re: Why is _WIN64 not defined as 1 in _cygwin.h? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.19306 YMailNorrin X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin-developers@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component developers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Nov 2021 18:06:32 -0000 Thanks for clearing that up - I'll send a patch to=C2=A0mingw-w64-public The porting tip is appreciated - luckily the need for Win32 in the port has= been minimal - it may be obviated completely if I can add VmPeak support -= and take care of the other issue - a VmSize number that does not match Win= 32=C2=A0PagefileUsage On Thursday, November 25, 2021, 08:08:24 AM EST, Corinna Vinschen wrote: On Nov 24 14:17, Z. Majeed wrote: > /* _WIN64 is defined by the compiler specs when targeting Windows.=C2=A0 > =C2=A0The Cygwin-targeting gcc does not define it by default, same as=C2= =A0 > =C2=A0with _WIN32.=C2=A0 Therefore we set it here.=C2=A0 The result is th= at _WIN64=C2=A0 > =C2=A0is only defined if Windows headers are included. */#ifdef > __x86_64__#define _WIN64#endif This gives compile errors wherever > _WIN64 is used in oneTBB code in expressions like #if _WIN32 || _WIN64 > e.g. at > https://github.com/oneapi-src/oneTBB/blob/master/test/tbbmalloc/test_mall= oc_compliance.cpp#L38 > The _WIN64 predefined macro is documented at > https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros > "_WIN64 Defined as 1 when the compilation target is 64-bit ARM or x64. > Otherwise, undefined." Why has cygwin chosen to define _WIN64 with no > value? Because it was sufficient at the time and nobody actually cared until today, I guess. As for mixing Cygwin and Windows calls, I'd like to point out https://cygwin.com/faq.html#faq.programming.64bitporting Not saying you did something wrong, but the fact that the long datatype differs in size requires some careful checking when porting stuff. > Can _WIN64 instead be defined as 1 per Microsoft specification? Note that this is just the Cygwin-specific part of the mingw-w64 project, not Cygwin itself.=C2=A0 If you want to change that, just send a patch to the mingw-w64 mailing list. Corinna