]> git.saurik.com Git - wxWidgets.git/commitdiff
Minor corrections to be able to compile with VC++ 1.5C and VC++ 4.1
authorPatrick Albert <als@barjov.frmug.fr.net>
Tue, 24 Aug 1999 15:54:04 +0000 (15:54 +0000)
committerPatrick Albert <als@barjov.frmug.fr.net>
Tue, 24 Aug 1999 15:54:04 +0000 (15:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/busyinfo.cpp
src/generic/prop.cpp
src/makemsc.env
src/msw/makefile.dos
src/msw/spinbutt.cpp
src/msw/treectrl.cpp

index d446750d64a8cc7322a105a6666580df6f6a2dde..0b94f12ab5e50e281149cbf6b5f53fb54be2e81c 100644 (file)
@@ -51,4 +51,5 @@ wxBusyInfo::~wxBusyInfo()
 }
 
 #endif
-  // wxUSE_BUSYINFO
\ No newline at end of file
+  // wxUSE_BUSYINFO
+
index 178d82bc97bde1d55f741e012f78ed70cb22fd1a..537588ba1879a5f5964152d3e5818b6672391d89 100644 (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;
index f21ae55fec849199a4f7b16e9ec345aee8a14c07..282fafea227042cf83b61836fc0d5bb0c37ed823 100644 (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
index d390c878d46b1f91eb29a0c74c186aa3d574026a..137a57c87a6a7adc7f49d2a21a00d2b427c8189e 100644 (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)
index e3c8964586a15d80570915d89d53a7b90f69d611..607c4f5826d5176181e3cd8bf7250ef26180f9c6 100644 (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
index 4f1f806d3cc708a1019a96739fc17ea181c3aeba..913713c5662a90651c628c422bb42793fce446f4 100644 (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.