fixes from Arjan Knepper for D Mars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@25478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
typedef _off_t off_t;
|
||||
#elif defined(__BORLANDC__) && defined(__WIN16__)
|
||||
typedef long off_t;
|
||||
#elif defined(__SC__)
|
||||
#elif (defined(__SC__) && !defined(__DIGITALMARS__))
|
||||
typedef long off_t;
|
||||
#elif defined(__MWERKS__) && !defined(__INTEL__)
|
||||
typedef long off_t;
|
||||
|
@@ -302,7 +302,7 @@
|
||||
This macro can be used to check that the version of mingw32 compiler is
|
||||
at least maj.min
|
||||
*/
|
||||
#if defined( __GNUWIN32__ ) || defined( __MINGW32__ ) || defined( __CYGWIN__ ) || defined(__DIGITALMARS__)
|
||||
#if defined( __GNUWIN32__ ) || defined( __MINGW32__ ) || defined( __CYGWIN__ )
|
||||
#include "wx/msw/gccpriv.h"
|
||||
#else
|
||||
#undef wxCHECK_W32API_VERSION
|
||||
|
@@ -30,3 +30,7 @@ EXPORTS
|
||||
_shutdown@8 = shutdown
|
||||
_closesocket@4 = closesocket
|
||||
_WSAAsyncSelect@16 = WSAAsyncSelect
|
||||
|
||||
_setsockopt@20 = setsockopt
|
||||
|
||||
|
||||
|
@@ -61,7 +61,7 @@
|
||||
#include <commdlg.h>
|
||||
#endif
|
||||
|
||||
#if defined(__WATCOMC__) || defined(__SC__) || defined(__SALFORDC__)
|
||||
#if defined(__WATCOMC__) || (defined(__SC__) && !defined(__DIGITALMARS__)) || defined(__SALFORDC__)
|
||||
#include <windowsx.h>
|
||||
#include <commdlg.h>
|
||||
#endif
|
||||
|
@@ -620,7 +620,7 @@ void wxDC::DoDrawCheckMark(wxCoord x1, wxCoord y1,
|
||||
wxCoord x2 = x1 + width,
|
||||
y2 = y1 + height;
|
||||
|
||||
#if defined(__WIN32__) && !defined(__SC__) && !defined(__WXMICROWIN__)
|
||||
#if defined(__WIN32__) && (!defined(__SC__) || defined(__DIGITALMARS__)) && !defined(__WXMICROWIN__)
|
||||
RECT rect;
|
||||
rect.left = x1;
|
||||
rect.top = y1;
|
||||
|
@@ -534,7 +534,7 @@ bool wxICOResourceHandler::LoadIcon(wxIcon *icon,
|
||||
|
||||
// note that we can't just always call LoadImage() because it seems to do
|
||||
// some icon rescaling internally which results in very ugly 16x16 icons
|
||||
#if defined(__WIN32__) && !defined(__SC__)
|
||||
#if defined(__WIN32__) && (!defined(__SC__) || defined (__DIGITALMARS__) )
|
||||
if ( hasSize )
|
||||
{
|
||||
hicon = (HICON)::LoadImage(wxGetInstance(), name, IMAGE_ICON,
|
||||
|
@@ -228,7 +228,7 @@ bool wxOwnerDrawn::OnMeasureItem(size_t *pwidth, size_t *pheight)
|
||||
// get drawn embossed? How can we tell DrawState that we don't want the
|
||||
// embossing?
|
||||
|
||||
#if defined(__WIN32__) && !defined(__SC__) && !defined(__TWIN32__)
|
||||
#if defined(__WIN32__) && (!defined(__SC__) || defined (__DIGITALMARS__)) && !defined(__TWIN32__)
|
||||
#define O_DRAW_NATIVE_API // comments below explain why I use it
|
||||
#endif
|
||||
|
||||
|
@@ -50,9 +50,6 @@
|
||||
// ----------------------------------------------------------------------------
|
||||
// Toolbar define value missing
|
||||
// ----------------------------------------------------------------------------
|
||||
#if defined(__DIGITALMARS__)
|
||||
#define CCS_VERT 0x00000080L
|
||||
#endif
|
||||
|
||||
#include "wx/msw/private.h"
|
||||
|
||||
|
@@ -193,7 +193,7 @@ WXDWORD wxTopLevelWindowMSW::MSWGetStyle(long style, WXDWORD *exflags) const
|
||||
|
||||
if ( exflags )
|
||||
{
|
||||
#if !defined(__WIN16__) && !defined(__SC__)
|
||||
#if !defined(__WIN16__) && (!defined(__SC__) || defined (__DIGITALMARS__))
|
||||
if ( !(GetExtraStyle() & wxTOPLEVEL_EX_DIALOG) )
|
||||
{
|
||||
if ( style & wxFRAME_TOOL_WINDOW )
|
||||
|
@@ -1022,7 +1022,7 @@ wxString wxGetOsDescription()
|
||||
|
||||
int wxGetOsVersion(int *majorVsn, int *minorVsn)
|
||||
{
|
||||
#if defined(__WIN32__) && !defined(__SC__)
|
||||
#if defined(__WIN32__) && (!defined(__SC__) || defined(__DIGITALMARS__))
|
||||
static int ver = -1, major = -1, minor = -1;
|
||||
|
||||
if ( ver == -1 )
|
||||
|
Reference in New Issue
Block a user