Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 From: "Hannu E K Nevalainen" To: Subject: RE: __CYGWIN__ ++ FAQ change? Date: Thu, 16 Oct 2003 20:52:26 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0000_01C39427.683E3AD0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: x-mimeole: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal Note-from-DJ: This may be spam ------=_NextPart_000_0000_01C39427.683E3AD0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit > From: Igor Pechtchanski > Sent: Thursday, September 25, 2003 10:03 PM > Hannu, > > faq.txt is generated. See > for the location of > the "real" faq. > Igor ...retry. -- Changelog -- 2003-10-16 Hannu E K Nevalainen * how-programming.texinfo: Add some words about -mno-cygwin, the difference with regard to preprocessor symbols and how to investigate it further. -- /Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E -- (DST) ? UTC+02 : UTC+01 -- --END OF MESSAGE-- ------=_NextPart_000_0000_01C39427.683E3AD0 Content-Type: application/octet-stream; name="how-programming.texinfo.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="how-programming.texinfo.diff" --- /src/winsup/doc/how-programming.texinfo 2003-02-13 = 15:20:32.000000000 +0100=0A= +++ /src/winsup/doc/how-programming.texinfo-Hannu 2003-10-16 = 20:22:24.000000000 +0200=0A= @@ -558,7 +558,7 @@ If your scripts are in the current direc=0A= you would need to add /bin/sh in front of each and every shell script=0A= invoked in your Makefiles.=0A= =0A= -@subsection What preprocessor do I need to know about?=0A= +@subsection What preprocessor symbols do I need to know about?=0A= =0A= We use _WIN32 to signify access to the Win32 API and __CYGWIN__ for=0A= access to the Cygwin environment provided by the dll.=0A= @@ -574,6 +574,17 @@ Unix emulation environment and defining =0A= which think that they have to make special concessions for a Windows=0A= environment which Cygwin handles automatically.=0A= =0A= +Note that using -mno-cygwin replaces __CYGWIN__ with __MINGW32__ as to=0A= +tell which compiler (or settings) you're running.=0A= +Check this out in detail by running e.g.=0A= + $ gcc