From ac51da48181e56cb45ddd609b50a3549287bdc27 Mon Sep 17 00:00:00 2001 From: Joshua Daniel Franklin Date: Sun, 11 Jan 2004 08:32:09 +0000 Subject: 2004-01-11 Joshua Daniel Franklin * Makefile.in: Add new target for single-file User's Guide, use new cygwin.dsl for output. * cygwin.dsl: New file, DSSSL stylesheet for custom Cygwin output. * cygwin-api.in.sgml: Update to DocBook SGML 4.2 DTD. * cygwin-ug-net.in.sgml: Update to DocBook SGML 4.2 DTD. * cygwin-ug.in.sgml: Update to DocBook SGML 4.2 DTD. * cygwinenv.sgml: Correct some tags. Add description of default values to ntsec, export, and error_start items. * dll.sgml: Add explanation of cyg prefix for DLLs. * effectively.sgml: Use systemitem tag for names of Cygwin packages. * how-programming.texinfo: Add example to FAQ entry. * pathnames.sgml: Add discussion of /proc filesystem. * setup-net.sgml: Correct some typos and grammar. --- winsup/doc/how-programming.texinfo | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'winsup/doc/how-programming.texinfo') diff --git a/winsup/doc/how-programming.texinfo b/winsup/doc/how-programming.texinfo index d54ec3d4e..3ec161e75 100644 --- a/winsup/doc/how-programming.texinfo +++ b/winsup/doc/how-programming.texinfo @@ -576,6 +576,18 @@ Unix emulation environment and defining _WIN32 confuses some programs which think that they have to make special concessions for a Windows environment which Cygwin handles automatically. +Note that using -mno-cygwin replaces __CYGWIN__ with __MINGW32__ as to +tell which compiler (or settings) you're running. +Check this out in detail by running, for example + +@example + $ gcc -dM -E -xc /dev/null >gcc.txt + $ gcc -mno-cygwin -dM -E -xc /dev/null >gcc-mno-cygwin.txt + $ gcc -mwin32 -dM -E -xc /dev/null >gcc-mwin32.txt +@end example +Then use the diff and grep utilities to check +what the difference is. + @subsection How should I port my Unix GUI to Windows? There are two basic strategies for porting Unix GUIs to Windows. -- cgit v1.2.3