From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48197 invoked by alias); 12 May 2019 20:54:26 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 48190 invoked by uid 89); 12 May 2019 20:54:26 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=gran, Gran, Mike, somebody X-HELO: lb1-smtp-cloud8.xs4all.net Received: from lb1-smtp-cloud8.xs4all.net (HELO lb1-smtp-cloud8.xs4all.net) (194.109.24.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 12 May 2019 20:54:24 +0000 Received: from tmp.ramGxR3qAD ([83.162.234.136]) by smtp-cloud8.xs4all.net with ESMTPSA id PvUDhg4Ii0YQePvUEhbjHs; Sun, 12 May 2019 22:54:22 +0200 Date: Sun, 12 May 2019 20:54:00 -0000 Message-ID: <75d7872a826c01b59f2576fa0bd5bf73@smtp-cloud8.xs4all.net> From: Houder Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com Subject: Re: Why is __unix__ defined, and not __WINDOWS__ ? References: <5fbb6229-da17-c056-19b9-9819c684a8ad@agner.org> <20190512203330.GA30710@spikycactus.attlocal.net> In-Reply-to: <20190512203330.GA30710@spikycactus.attlocal.net> Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 X-SW-Source: 2019-05/txt/msg00101.txt.bz2 On Sun, 12 May 2019 13:33:30, Mike Gran via cygwin" wrote: [snip] > I think these days the canonical defines are (somebody correct me if > I'm wrong) > > __CYGWIN__ for Cygwin > > _WIN32 as 1 on MinGW when the compilation target is Windows 32-bit > ARM, 64-bit ARM, x86, or x64. Otherwise, undefined. > > _WIN64 as 1 on MinGW when the compilation target is Windows 64-bit > ARM or x64. Otherwise, undefined https://sourceforge.net/p/predef/wiki/Home/ ===== -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple