delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=eThG8dU2EWeocbPU | |
y83WnRoQ7VNiN5ACwutaf2fy90ASuBsriXCXpPjR5EviLTQLFpPm/6ra0b7ip6p/ | |
K5C1mAegMRkWxFgGEErYGQb1OAYMKpA9xOILWEVJudVANO2Kqphh9ytmbRBo0Reu | |
Aut42/DvMQwKpZ/jAbkdXhKzx+E= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:reply-to:subject:to:references:from:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=kLmnEuaY16xwCckw7s/fKt | |
0oZss=; b=rN/l1FnLP+baHcnDkNf29KypVfI5SBTwcpVVhkwFzePD2Y1WigfvsF | |
vkApcfUMY14t2Llm40tkpxzwN1uUGEr+tPcIIavRQJjklgjJBIQejlb+npV/rTpI | |
rBPQO0Lj96V9bpWReeiC7J58+auXG1Gl/do67yPRtQSOnF/yZpg6A= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-3.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=Take, HX-Languages-Length:1099 |
X-HELO: | smtp-out-so.shaw.ca |
Reply-To: | Brian DOT Inglis AT SystematicSw DOT ab DOT ca |
Subject: | Re: Why is __unix__ defined, and not __WINDOWS__ ? |
To: | cygwin AT cygwin DOT com |
References: | <5fbb6229-da17-c056-19b9-9819c684a8ad AT agner DOT org> <20190512203330 DOT GA30710 AT spikycactus DOT attlocal DOT net> <75d7872a826c01b59f2576fa0bd5bf73 AT smtp-cloud8 DOT xs4all DOT net> |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Openpgp: | preference=signencrypt |
Message-ID: | <b5cce884-1654-255c-fe5c-0ec460368b53@SystematicSw.ab.ca> |
Date: | Sun, 12 May 2019 22:40:48 -0600 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
MIME-Version: | 1.0 |
In-Reply-To: | <75d7872a826c01b59f2576fa0bd5bf73@smtp-cloud8.xs4all.net> |
X-IsSubscribed: | yes |
On 2019-05-12 14:54, Houder wrote: > On Sun, 12 May 2019 13:33:30, Mike Gran via cygwin" wrote: >> 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/ That information is 15 years out of date, a lot of the platforms are dead or obsolete, and compilers are gone or changed a lot. There is no attempt at discrimination across clang or gcc platforms, and no mention of Cygwin or Mingw platforms, newlib or musl libraries, nor mention of other feature test macros: better do "man feature_test_macros" for currently useful information. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |