update to make digitalmars compile/link image sample

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Chris Elliott
2003-04-22 21:12:30 +00:00
parent 0caac3b4a9
commit 4ded51f2fa
8 changed files with 24 additions and 21 deletions

View File

@@ -3530,7 +3530,8 @@ const wxChar *wxDateTime::ParseTime(const wxChar *time)
size_t len = timeString.length(); size_t len = timeString.length();
if ( timeString.CmpNoCase(wxString(time, len)) == 0 ) if ( timeString.CmpNoCase(wxString(time, len)) == 0 )
{ {
Set(stdTimes[n].hour, 0, 0); // casts required by DigitalMars
Set(stdTimes[n].hour, wxDateTime_t(0), wxDateTime_t(0));
return time + len; return time + len;
} }

View File

@@ -39,7 +39,7 @@
#endif //WX_PRECOMP #endif //WX_PRECOMP
// FreeBSD & Watcom require this, it probably doesn't hurt for others // FreeBSD & Watcom require this, it probably doesn't hurt for others
#if defined(__UNIX__) || defined(__WATCOMC__) #if defined(__UNIX__) || defined(__WATCOMC__) || defined(__DIGITALMARS__)
#include <sys/types.h> #include <sys/types.h>
#endif #endif

View File

@@ -44,13 +44,13 @@
#include "wx/slider.h" #include "wx/slider.h"
#endif #endif
#if wxUSE_SPINCTRL && !defined(__WIN16__)
#include "wx/spinctrl.h" #include "wx/spinctrl.h"
#endif
#if wxUSE_SPINBTN && !defined(__WIN16__) #if wxUSE_SPINBTN
#include "wx/spinbutt.h" #include "wx/spinbutt.h"
#endif #endif
#if wxUSE_CHECKLISTBOX && !defined(__WIN16__) #if wxUSE_CHECKLISTBOX
#include "wx/checklst.h" #include "wx/checklst.h"
#endif #endif

View File

@@ -614,7 +614,9 @@ void wxGenericDirCtrl::OnExpandItem(wxTreeEvent &event)
// VS: this is needed because the event handler is called from wxTreeCtrl // VS: this is needed because the event handler is called from wxTreeCtrl
// ctor when wxTR_HIDE_ROOT was specified // ctor when wxTR_HIDE_ROOT was specified
if (m_rootId == 0)
if (!m_rootId.IsOk())
m_rootId = m_treeCtrl->GetRootItem(); m_rootId = m_treeCtrl->GetRootItem();
ExpandDir(parentId); ExpandDir(parentId);

View File

@@ -7,7 +7,7 @@ INCLUDE=$(INCDIR)
include $(WXDIR)\src\makesc.env include $(WXDIR)\src\makesc.env
$(TARGET).exe: $(TARGET).obj $(TARGET).res $(TARGET).exe: $(TARGET).obj $(TARGET).res
link $(LDFLAGS) $*, $@, $*, $(LIBS) link $(LDFLAGS) /DELEXECUTABLE /RC $*, $@, $*, $(LIBS)
sc32.def: sc32.def:

View File

@@ -8,6 +8,8 @@ MSWINCDIR = $(WXDIR)\include\wx\msw
ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX) ARCHINCDIR = $(WXDIR)\lib\$(SC_SUFFIX)
LIBDIR = $(WXDIR)\lib LIBDIR = $(WXDIR)\lib
WXLIB = $(LIBDIR)\wx$(SC_SUFFIX).lib WXLIB = $(LIBDIR)\wx$(SC_SUFFIX).lib
WINSOCKLIB = $(LIBDIR)\winsock$(SC_SUFFIX).lib
SUPPORTLIBS = $(LIBDIR)\png$(SC_SUFFIX).lib $(LIBDIR)\tiff$(SC_SUFFIX).lib $(LIBDIR)\jpeg$(SC_SUFFIX).lib $(LIBDIR)\zlib$(SC_SUFFIX).lib
SRCSUFF = cpp SRCSUFF = cpp
OBJSUFF = obj OBJSUFF = obj
@@ -21,19 +23,12 @@ INCLUDE=-I$(INCDIR) -I$(ARCHINCDIR) -I$(WXDIR)/src/regex;$(WXDIR)/src/png;$(WXDI
CC=dmc CC=dmc
RC=rcc RC=rcc
# WIN16 settings
#CFLAGS = -Jm -ml -W -D__WXMSW__ -D__SC__ -D__WXDEBUG__ -D__WINDOWS__ -D__WIN16__ $(EXTRACPPFLAGS)
#LINKER = link
#LDFLAGS = -ml -W -L$(LINKER).exe $(EXTRALDFLAGS)
#LIBS=$(WXLIB) $(EXTRALIBS) libw.lib commdlg.lib ddeml.lib shell.lib # $(LIB)\ctl3dv2.lib
#DEFFILE=sc16.def
# WIN32 settings # WIN32 settings
# -H ... fix to use directory # -H ... fix to use directory
CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS) CFLAGS = -o -mn -W -H -D__NT__ -DWIN32 -D__WIN32__ -D__WIN95__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
LINKER = link LINKER = link
LDFLAGS = /DELEXECUTABLE /RC $(EXTRALDFLAGS) LDFLAGS = $(EXTRALDFLAGS)
LIBS=$(WXLIB) $(EXTRALIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid LIBS=$(WXLIB) $(EXTRALIBS) $(SUPPORTLIBS) advapi32 comctl32 comdlg32 ctl3d32 gc gdi32 kernel32 ole32 oleaut32 snn user32 uuid $(WINSOCKLIB)
DEFFILE=sc32.def DEFFILE=sc32.def
.$(SRCSUFF).obj: .$(SRCSUFF).obj:

View File

@@ -331,7 +331,8 @@ MAKEARCHDIR:
@if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h @if not exist $(ARCHINCDIR)\wx\setup.h copy $(MSWINCDIR)\setup.h $(ARCHINCDIR)\wx\setup.h
MAKEWINSOCKLIB: MAKEWINSOCKLIB:
implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll @if not exist $(WINSOCKLIB) implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
## implib /system /v /suffix /Ic:\wx\dm\include\win32 $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll ## implib /s $(WINSOCKLIB) $(WINDIR)\system32\winsock.dll
##@if not exist $(WINSOCKLIB) ##@if not exist $(WINSOCKLIB)

View File

@@ -60,9 +60,13 @@
#endif #endif
#endif #endif
#if defined (__SC__) && !defined (__DMC__)
#define __SYMANTEC__
#endif
#include <stdio.h> #include <stdio.h>
#if defined(__PPCC__) || defined(__SC__) || defined(__MRC__) #if defined(__PPCC__) || defined(__SYMANTEC__) || defined(__MRC__)
#include <types.h> #include <types.h>
#elif !defined(__MWERKS__) && !defined(THINK_C) && !defined(__acornriscos) && !defined(applec) #elif !defined(__MWERKS__) && !defined(THINK_C) && !defined(__acornriscos) && !defined(applec)
#include <sys/types.h> #include <sys/types.h>
@@ -83,7 +87,7 @@
* additional includes are also done to pull in the * additional includes are also done to pull in the
* appropriate definitions we're looking for. * appropriate definitions we're looking for.
*/ */
#if defined(__MWERKS__) || defined(THINK_C) || defined(__PPCC__) || defined(__SC__) || defined(__MRC__) #if defined(__MWERKS__) || defined(THINK_C) || defined(__PPCC__) || defined(__SYMANTEC__) || defined(__MRC__)
#include <stdlib.h> #include <stdlib.h>
#define BSDTYPES #define BSDTYPES
#define HAVE_UNISTD_H 0 #define HAVE_UNISTD_H 0
@@ -137,7 +141,7 @@ typedef unsigned long u_long;
* stack (when coerced by the compiler). * stack (when coerced by the compiler).
*/ */
/* Note: on MacPowerPC "extended" is undefined. So only use it for 68K-Macs */ /* Note: on MacPowerPC "extended" is undefined. So only use it for 68K-Macs */
#if defined(__SC__) || defined(THINK_C) #if defined(__SYMANTEC__) || defined(THINK_C)
typedef extended dblparam_t; typedef extended dblparam_t;
#else #else
typedef double dblparam_t; typedef double dblparam_t;