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:date:message-id:from:reply-to:to:subject :references:in-reply-to:content-type; q=dns; s=default; b=JEk0Pw cZtvStqkOzgvy044Agzn/Qb+xCIu1qh0z6Yv5/PD46b4HOOaat/ALgcmsGLYJrDK UYHboQPyVUXdCP4RcOZ3TXSsqNYOaTcJANeC2rgGODAe1TcRb6qjPr03Ua8f3hPh XoIhKEHd3/jD7zQYCkMr1OqWZ+r5NCbTbwFFY= 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:date:message-id:from:reply-to:to:subject :references:in-reply-to:content-type; s=default; bh=M3kyxLixZ7jg enTluF/OOFnqK4I=; b=fymIT8uQbDWlRbwPJiAzObIob3SjrgnhvkLyCnWi+pZ1 WymMnRW36J5eETzhLNwC1q7inOqKFCA2IScSSDv+ldH1lkGVqUImSkQclZ6VZ1iB IGYkBe0lY+3AeiEY9C4cAMiKVD2D80vFs4QRXKxf+6diKGF+Bu7AYjcQ7kEaCoE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=mouth, horses X-HELO: lb1-smtp-cloud7.xs4all.net Date: Mon, 13 May 2019 12:04:24 +0200 Message-ID: From: Houder Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Why is __unix__ defined, and not __WINDOWS__ ? 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> In-Reply-to: Content-Type: text/plain; charset=UTF-8; format=fixed User-Agent: mua.awk 0.99 On Sun, 12 May 2019 22:40:48, Brian Inglis wrote: > 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 True ... Ok, from the horse's mouth then (wrt the *WIN* mnemonics): https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros?view=vs-2019 (for as long as it lasts) Henri -- 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