Updates to make wxWidgets compaile on OpenVMS again

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Jouk Jansen 2010-03-25 11:16:32 +00:00
parent d26cb76b58
commit e1cf09d918
4 changed files with 20 additions and 6 deletions

View File

@ -2599,8 +2599,13 @@ TestMessageBoxDialog::TestMessageBoxDialog(wxWindow *parent)
"&Error icon"
};
wxCOMPILE_TIME_ASSERT( WXSIZEOF(icons) == MsgDlgIcon_Max, IconMismatch );
#ifndef __VMS
// This contruction not is not valid on OpenVMS:
// %CXX-W-REFNESTFUNVAR, reference to local variable of enclosing function is
// not allowed
wxCOMPILE_TIME_ASSERT( WXSIZEOF(icons) == MsgDlgIcon_Max, IconMismatch );
#endif
m_icons = new wxRadioBox(this, wxID_ANY, "&Icon style",
wxDefaultPosition, wxDefaultSize,
WXSIZEOF(icons), icons,

View File

@ -3,7 +3,7 @@
* Template for the set.h file for VMS *
* Created from setup.h_in *
* Author : J.Jansen (joukj@hrem.nano.tudelft.nl) *
* Date : 4 February 2010 *
* Date : 24 March 2010 *
* *
*****************************************************************************/
@ -116,6 +116,7 @@ typedef pid_t GPid;
#undef __NETBSD__
#undef __OPENBSD__
#undef __OSF__
#undef __QNX__
#undef __SGI__
#undef __SOLARIS__
#undef __SUN__
@ -547,7 +548,7 @@ typedef pid_t GPid;
#define wxUSE_MOUSEWHEEL 1
#define wxUSE_UIACTIONSIMULATOR 1
#define wxUSE_POSTSCRIPT 1

View File

@ -372,7 +372,15 @@ wxString wxControlBase::DoEllipsizeSingleLine(const wxString& curLine, const wxD
return curLine;
}
wxASSERT(initialCharToRemove >= 0 && initialCharToRemove <= len-1); // see valid range for initialCharToRemove above
#ifdef __VMS
#pragma message disable unscomzer
// suppress warnings on comparison of unsigned numbers
#endif
wxASSERT(initialCharToRemove >= 0 && initialCharToRemove <= len-1); // see valid range for initialCharToRemove above
#ifdef __VMS
#pragma message enable unscomzer
// suppress warnings on comparison of unsigned numbers
#endif
wxASSERT(nCharsToRemove >= 1 && nCharsToRemove <= len-initialCharToRemove); // see valid range for nCharsToRemove above
// erase nCharsToRemove characters after initialCharToRemove (included);

View File

@ -26,7 +26,7 @@
#ifndef SA_RESTART
// don't use for systems which don't define it (at least VMS and QNX)
#define SA_RESTART
#define SA_RESTART 0
#endif
// use unusual names for arg[cv] to avoid clashes with wxApp members with the