Minor corrections to be able to compile with VC++ 1.5C and VC++ 4.1

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Patrick Albert
1999-08-24 15:54:04 +00:00
parent d1bc9efeff
commit 2996bcde9c
6 changed files with 22 additions and 11 deletions

View File

@@ -52,3 +52,4 @@ wxBusyInfo::~wxBusyInfo()
#endif
// wxUSE_BUSYINFO

View File

@@ -370,7 +370,7 @@ void wxPropertyValue::Copy(wxPropertyValue& copyFrom)
{
wxChar** s = copyFrom.StringValuePtr();
// what is this? are you trying to assign a bool or a string? VA can't figure it out..
#if defined(__VISAGECPP__)
#if defined(__VISAGECPP__) || defined( __VISUALC__ )
(*this) = s;
#else
(*this) = s != 0;

View File

@@ -26,7 +26,8 @@ WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib
OBJSUFF=obj
SRCSUFF=cpp
INC=/I$(WXDIR)\include
#INC=/I$(WXDIR)\include
INC=-I$(WXINC) -I$(WXDIR)/src/png -I$(WXDIR)/src/zlib -I$(WXDIR)/src/jpeg $(EXTRAINC)
# Set this to nothing if using MS C++ 7
ZOPTION=/Z7

View File

@@ -101,7 +101,6 @@ COMMONOBJS = \
$(COMMDIR)\dynarray.obj \
$(COMMDIR)\dynlib.obj \
$(COMMDIR)\event.obj \
$(COMMDIR)\extended.obj \
$(COMMDIR)\ffile.obj \
$(COMMDIR)\file.obj \
$(COMMDIR)\fileconf.obj \
@@ -118,7 +117,6 @@ COMMONOBJS = \
$(COMMDIR)\image.obj \
$(COMMDIR)\imaggif.obj \
$(COMMDIR)\imagjpeg.obj \
$(COMMDIR)\imagpng.obj \
$(COMMDIR)\imagpnm.obj \
$(COMMDIR)\intl.obj \
$(COMMDIR)\ipcbase.obj \
@@ -146,7 +144,6 @@ COMMONOBJS = \
$(COMMDIR)\timercmn.obj \
$(COMMDIR)\tokenzr.obj \
$(COMMDIR)\txtstrm.obj \
$(COMMDIR)\unzip.obj \
$(COMMDIR)\utilscmn.obj \
$(COMMDIR)\valgen.obj \
$(COMMDIR)\validate.obj \
@@ -157,8 +154,14 @@ COMMONOBJS = \
$(COMMDIR)\wxchar.obj \
$(COMMDIR)\wxexpr.obj \
$(COMMDIR)\zipstrm.obj \
$(COMMDIR)\extended.obj \
$(COMMDIR)\unzip.obj \
$(COMMDIR)\zstream.obj
# Won't compile
# $(COMMDIR)\imagpng.obj \
#
MSWOBJS = $(MSWDIR)\accel.obj \
$(MSWDIR)\app.obj \
$(MSWDIR)\bitmap.obj \
@@ -210,7 +213,6 @@ MSWOBJS = $(MSWDIR)\accel.obj \
$(MSWDIR)\palette.obj \
$(MSWDIR)\pen.obj \
$(MSWDIR)\penwin.obj \
$(MSWDIR)\pnghand.obj \
$(MSWDIR)\printdlg.obj \
$(MSWDIR)\printwin.obj \
$(MSWDIR)\radiobox.obj \
@@ -234,6 +236,9 @@ MSWOBJS = $(MSWDIR)\accel.obj \
$(MSWDIR)\window.obj \
$(MSWDIR)\xpmhand.obj
# Won't compile
# $(MSWDIR)\pnghand.obj \
#
# TODO: Implement XPM and PNG targets in this makefile!
# $(OLEDIR)\xpmhand \
# $(OLEDIR)\pnghand \
@@ -745,9 +750,9 @@ $(COMMDIR)/event.obj: $*.$(SRCSUFF)
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(COMMDIR)/extended.obj: $*.$(SRCSUFF)
$(COMMDIR)/extended.obj: $*.c
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
$(CPPFLAGS2) /Fo$@ /c /Tc $*.c
<<
$(COMMDIR)/ffile.obj: $*.$(SRCSUFF)
@@ -970,9 +975,9 @@ $(COMMDIR)/txtstrm.obj: $*.$(SRCSUFF)
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
<<
$(COMMDIR)/unzip.obj: $*.$(SRCSUFF)
$(COMMDIR)/unzip.obj: $*.c
cl @<<
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
$(CPPFLAGS2) /Fo$@ /c /Tc $*.c
<<
$(COMMDIR)/utilscmn.obj: $*.$(SRCSUFF)

View File

@@ -153,6 +153,8 @@ bool wxSpinButton::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
#ifndef __GNUWIN32__
#ifdef __BORLANDC__
LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam;
#elif defined(__VISUALC__) && (__VISUALC__ == 1010)
LPNM_UPDOWN lpnmud = (LPNM_UPDOWN)lParam;
#else
LPNMUPDOWN lpnmud = (LPNMUPDOWN)lParam;
#endif

View File

@@ -200,8 +200,10 @@ bool wxTreeCtrl::Create(wxWindow *parent,
#if !defined( __GNUWIN32__ ) && !defined( __BORLANDC__ ) && !defined(wxUSE_NORLANDER_HEADERS)
// we emulate the multiple selection tree controls by using checkboxes: set
// up the image list we need for this if we do have multiple selections
#if !defined(__VISUALC__) || (__VISUALC__ != 1010)
if ( m_windowStyle & wxTR_MULTIPLE )
wstyle |= TVS_CHECKBOXES;
#endif
#endif
// Create the tree control.