Updated install.txt, added double-inclusion guard, corrected a GnuWin32 thing

in spinctrl.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 1999-10-14 17:47:31 +00:00
parent be0872076f
commit 4c0a2c5c3e
2 changed files with 16 additions and 13 deletions

View File

@ -308,7 +308,7 @@ improving the compiler.
Cygwin b19/b20/Mingw32 compilation Cygwin b19/b20/Mingw32 compilation
---------------------------------- ----------------------------------
wxWindows 2.0 supports Cygwin (formerly GnuWin32) b19, b20, Mingw32, and Mingw32/EGCS. wxWindows 2 supports Cygwin (formerly GnuWin32) b19, b20, Mingw32, and Mingw32/EGCS.
Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making
it all possible. it all possible.
@ -328,8 +328,12 @@ Here are the steps required:
If you have already have downloaded bison, flex, make, rm, mv If you have already have downloaded bison, flex, make, rm, mv
from elsewhere, you won't need this. from elsewhere, you won't need this.
IMPORTANT: also see mingw32.txt in this directory (docs/msw) If using Mingw32 2.8.1, see also see mingw32.txt in this directory
about a fix that has to be applied to a Mingw32 header file. (docs/msw) about a fix that has to be applied to a Mingw32 header file.
If using Mingw32 2.95 with wxWindows 2.1 or above, and wish to use OLE, you
should hand-patch in Mingw32-gcc295.patches (located in the top-level of the
wxWindows 2 installation).
- Modify the file wx/src/cygnus.bat (or mingw32.bat or mingegcs.bat) - Modify the file wx/src/cygnus.bat (or mingw32.bat or mingegcs.bat)
to set up appropriate variables, if necessary mounting drives. to set up appropriate variables, if necessary mounting drives.
@ -338,16 +342,13 @@ Here are the steps required:
- For Cygwin, make sure there's a \tmp directory on your - For Cygwin, make sure there's a \tmp directory on your
Windows drive or bison will crash. Windows drive or bison will crash.
- Edit wx/src/makeg95.env and search for MINGW32. Take note of - makeg95.env configuation:
the comments for adjusting settings to suit Cygwin or
Mingw32. Basically, this is just a case of adding the __MINGW32__ symbol
to OPTIONS for Mingw32, or removing it for Cygnus Cygwin.
For Mingw32/EGCS, add both __MINGW32__ and __EGCS__.
You may need to remove -loldnames from WINLIBS for Mingw32, or add it for
Cygwin.
- Mingw32 may not support winsock.h, so comment out - Edit wx/src/makeg95.env and set the MINGW32 variable at the top of
socket-related files in src/msw/makefile.g95. the file to either 1 (you have Mingw32) or 0 (you have Cygwin32).
- Mingw32 may not support winsock.h, so if you have a problem
here, comment out socket-related files in src/msw/makefile.g95.
- Set your WXWIN variable to where wxWindows is installed. - Set your WXWIN variable to where wxWindows is installed.
*** IMPORTANT: For Cygwin/Mingw32, use forward slashes in the path, not *** IMPORTANT: For Cygwin/Mingw32, use forward slashes in the path, not

View File

@ -38,7 +38,9 @@
#include "wx/spinctrl.h" #include "wx/spinctrl.h"
#include "wx/msw/private.h" #include "wx/msw/private.h"
#if (defined(__WIN95__) && !defined(__GNUWIN32__)) || defined(__TWIN32__) || defined(wxUSE_NORLANDER_HEADERS)
#include <commctrl.h> #include <commctrl.h>
#endif
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// macros // macros