X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0872eaf957aaf4138dbba007df662ce5eae374e2..3e7cd2f52b97ad4191511343aa418e3f6355c165:/include/wx/defs.h diff --git a/include/wx/defs.h b/include/wx/defs.h index 6da83c521e..2924970772 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -573,7 +573,7 @@ typedef int wxWindowID; #define except(x) catch(...) #endif /* Metrowerks */ -#if defined(__WATCOMC__) +#if defined(__WATCOMC__) && (__WATCOMC__ < 1240) typedef short mode_t; #endif @@ -638,14 +638,7 @@ enum /* ---------------------------------------------------------------------------- */ /* the type for screen and DC coordinates */ - -#if wxUSE_COMPATIBLE_COORD_TYPES - /* to ensure compatibility with 2.0, we must use long */ - #define wxCoord long -#else /* !wxUSE_COMPATIBLE_COORD_TYPES */ - /* other platforms we support have at least 32bit int - quite enough */ - typedef int wxCoord; -#endif /* wxUSE_COMPATIBLE_COORD_TYPES/!wxUSE_COMPATIBLE_COORD_TYPES */ +typedef int wxCoord; enum { wxDefaultCoord = -1 }; @@ -963,6 +956,9 @@ inline void *wxUIntToPtr(wxUIntPtr p) #if defined(__PALMOS__) && !defined(HAVE_SSIZE_T) #define HAVE_SSIZE_T #endif +#if defined(__WATCOMC__) && __WATCOMC__ > 1230 + #define HAVE_SSIZE_T +#endif #ifndef HAVE_SSIZE_T #if SIZEOF_SIZE_T == 4 typedef wxInt32 ssize_t; @@ -1804,6 +1800,11 @@ enum wxHitTest /* Don't do parent client adjustments (for implementation only) */ #define wxSIZE_NO_ADJUSTMENTS 0x0008 +#if wxABI_VERSION >= 20602 +/* Change the window position even if it seems to be already correct */ +#define wxSIZE_FORCE 0x0010 +#endif // 2.6.2+ + /* ---------------------------------------------------------------------------- */ /* GDI descriptions */ /* ---------------------------------------------------------------------------- */ @@ -2672,6 +2673,7 @@ typedef void* WXRegion; typedef void* WXFont; typedef void* WXImage; typedef void* WXFontList; +typedef void* WXFontSet; typedef void* WXRendition; typedef void* WXRenderTable; typedef void* WXFontType; /* either a XmFontList or XmRenderTable */