delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/10/20/12:56:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <5082CF13.8090701@users.sourceforge.net>
References: <5082A321 DOT 1050601 AT t-online DOT de> <5082CF13 DOT 8090701 AT users DOT sourceforge DOT net>
Date: Sat, 20 Oct 2012 18:55:50 +0200
Message-ID: <CAEwic4a+9XeGwqOxs3_hJA3vp=oAYGhwUpt4n6anj_TLG36o6Q@mail.gmail.com>
Subject: Re: w32api-headers-3.0b_svn5431-1: _WIN32 no longer set on Cygwin
From: Kai Tietz <ktietz70 AT googlemail DOT com>
To: JonY <jon_y AT users DOT sourceforge DOT net>
Cc: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

2012/10/20 JonY wrote:
> On 10/20/2012 21:12, Christian Franke wrote:
>> Just for Info:
>>
>> The new /usr/include/w32api/windef.h does no longer define _WIN32.
>>
>> This may require compile fixes for some sources which check only for
>> _WIN32 and not for __CYGWIN__ after windows.h is included.
>>
>> Christian
>
> I can't imagine why you'd include windows.h and then check for _WIN32
> after the fact, but I still think mixing win32 calls and Cygwin calls is
> a bad idea, except for a few special cases.
>
> Anyway, I'll leave it to Kai to decide if it should be done, as I'm not
> sure if this request is proper.

That we don't define _WIN32 - actual we do internally but don't show
it to includer - is done by intention.  Actual Corinna and I decided
that this behavior is for cygwin the desired.
If you need to define _WIN32 then please do it within your
source-file, but don't expect that it gets defined for you by some
psdk-headers.

Kai

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019