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

@@ -51,4 +51,5 @@ wxBusyInfo::~wxBusyInfo()
} }
#endif #endif
// wxUSE_BUSYINFO // wxUSE_BUSYINFO

View File

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

View File

@@ -26,7 +26,8 @@ WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib
OBJSUFF=obj OBJSUFF=obj
SRCSUFF=cpp 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 # Set this to nothing if using MS C++ 7
ZOPTION=/Z7 ZOPTION=/Z7

View File

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

View File

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

View File

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