Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-10 22:38:26 +0300
committerChristopher Faylor <me@cgf.cx>2002-11-10 22:38:26 +0300
commit1b5f0e595b10488e8edebfab90c0672853a35b07 (patch)
tree2ac1394f37ab65aebb57f0948242f8fb9787b88b
parent7922485391a47b7a9384e3367111b80de58036e2 (diff)
* how-programming.texinfo: Document _WIN32 more fully.
-rw-r--r--winsup/doc/ChangeLog4
-rw-r--r--winsup/doc/how-programming.texinfo6
2 files changed, 10 insertions, 0 deletions
diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog
index abec5fe43..0075f86be 100644
--- a/winsup/doc/ChangeLog
+++ b/winsup/doc/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-10 Christopher Faylor <cgf@redhat.com>
+
+ * how-programming.texinfo: Document _WIN32 more fully.
+
2002-10-22 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* ntsec.sgml: Correct some minor grammatical errors.
diff --git a/winsup/doc/how-programming.texinfo b/winsup/doc/how-programming.texinfo
index aa23b186f..26adf0cc9 100644
--- a/winsup/doc/how-programming.texinfo
+++ b/winsup/doc/how-programming.texinfo
@@ -564,6 +564,12 @@ we thought it would be a good idea for compatibility with VC++ code
to follow their example. We use _MFC_VER to indicate code that should
be compiled with VC++.
+_WIN32 is only defined when you use either the -mno-cygwin or -mwin32
+gcc command line options. This is because Cygwin is supposed to be a
+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.
+
@subsection How should I port my Unix GUI to Windows?
There are two basic strategies for porting Unix GUIs to Windows.