Mail Archives: cygwin/2003/10/16/14:52:53
------=_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
> <http://cygwin.com/ml/cygwin/2003-09/msg01613.html> for the location of
> the "real" faq.
> Igor
...retry.
-- Changelog --
2003-10-16 Hannu E K Nevalainen <garbage_collector AT telia DOT com>
* 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 <option> -dM -E -xc /dev/null >gcc_<option>.txt=0A=
+with each <option>. Then use the diff and grep utilities to check=0A=
+what the difference is.=0A=
+Relevant <option> keywords;=0A=
+ -mno-cygwin=0A=
+ -mwin32=0A=
+ nothing (i.e. remove <option> and use the default WRT this).=0A=
+=0A=
@subsection How should I port my Unix GUI to Windows?=0A=
=0A=
There are two basic strategies for porting Unix GUIs to Windows.=0A=
------=_NextPart_000_0000_01C39427.683E3AD0
Content-Type: application/octet-stream;
name="Changelog"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="Changelog"
2003-10-16 Hannu E K Nevalainen <garbage_collector AT telia DOT com>=0A=
=0A=
* how-programming.texinfo: Add some words about -mno-cygwin,=0A=
the difference with regard to preprocessor symbols and how to=0A=
investigate it further.=0A=
------=_NextPart_000_0000_01C39427.683E3AD0
Content-Type: text/plain; charset=us-ascii
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
------=_NextPart_000_0000_01C39427.683E3AD0--
- Raw text -